hi there,,

 Did this work?
   I have actually tried this and yes, like Emily,my JS stuff is store
in myapp/root/lib/site .


    <script src="[% Catalyst.uri_for('/multifile.js') %]"></script>


Does not work.
 Did I miss anything out?  


thank you 



On 20/12/2007, Emily Heureux <emily at burnham.org> wrote:
>
> I am trying to execute a bit of external javascript code, but I don't
> believe I am setting it up correctly in Catalyst.  I have a clock.js file,
> and then inside a menu file in myapp/root/lib/site I have the script tag:
> <script src="clock.js">…</script>.

src="[% c.uri_for('/clock.js') %]"

EVERY link in your template files should use uri_for() to build the URL.

Cheers,
Carl

_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to