<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
In a template I invoke (successfully) from a Dancer2 path I have
some jquery that works outside Dancer2:<br>
$.post('/data1.pl',data,function(returnData){<br>
$('#func').html(returnData)<br>
<br>
This code calls data1.pl and stuff its output into the div func.<br>
<br>
I know data1.pl works in a non-Dancer2 environment. But I cannot
figure out where to put data1.pl so it can be run from the template.
I tried just putting it in the dancer public (where the css folder,
dispatch.cgi and such are), but that didn't work. I tried even to
run it from the browser command line and the browser wants to
download it. The directory has +ExecCGI and Dancer2 runs.<br>
<br>
Where should I put this file and what must I do so I can run it?<br>
Thanks!<br>
--john<br>
<div class="moz-signature">-- <br>
John J. McDermott, CPLP<br>
Learning and Performance Consultant<br>
jjm at jkintl.com 575/737-8556<br>
Check out my <a href="http://cybersecurity.learningtree.com">
security blog posts</a><br>
Add an A for the Arts To STEM and get STEAM and a strong engine to
move forward. </div>
</body>
</html>