<div dir="ltr">Hi Sullivan,<div><br></div><div>You'll need to put those js (and any css) files into approot/public/jquery (but i'd recommend dropping it into directory named 'js/jquery'). Dancer provides static file location through 'public' directory. </div>
<div><br></div><div>see: <a href="https://metacpan.org/pod/distribution/Dancer/lib/Dancer/Tutorial.pod#Serving-static-files">https://metacpan.org/pod/distribution/Dancer/lib/Dancer/Tutorial.pod#Serving-static-files</a> for more details </div>
<div><br></div><div>in this case, you don't need to use 'send_file', just drop them in public</div><div><br></div><div>HTH,</div><div><br></div><div>Lee</div><div><br></div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">On Wed, Jun 11, 2014 at 8:59 AM, Sullivan Beck <span dir="ltr"><<a href="mailto:sbeck@cpan.org" target="_blank">sbeck@cpan.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I've using Dancer 1.3115 on OpenSuSE 13.1.  I've downloaded jquery 1.11.1 and the datepick plugin from <a href="http://keith-wood.name/datepick.html" target="_blank">http://keith-wood.name/<u></u>datepick.html</a>.<br>

<br>
I took the simplest test script from the datepick home page (and stripped it down to a single popup calendar -- that's the functionality I want) and put it in a very simple Dancer script. Unfortunately, although the HTML produced is correct, the Dancer script isn't working.<br>

<br>
When I run the dancer script and point my browser at it, I see a text box asking for a date.  If I click in the box, no calendar pops up to select the date.<br>
<br>
If I view the page source and copy the html into a dancer2.html file and open that file up in my browser and it works great.  I see the same page, and clicking in the box pops up the calendar.<br>
<br>
I'm a fairly recent user of Dancer, but I'm really liking it and want to use it for a project but I really need the datepicker to work.<br>
<br>
Any suggestions?<br>
<br>
I'm attaching the <a href="http://dancer2.pl" target="_blank">dancer2.pl</a> script and the HTML it generates. My setup is that I have <a href="http://dancer2.pl" target="_blank">dancer2.pl</a> and dancer2.html in a directory and a subdirectory jquery containing both jquery and the datepicker plugin (both completely unmodified).<br>

<br>
<br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div>