Wednesday 04 July 2007 3:31:03 pm
Hello, I want use ajax in some templates... How can I call javascript functions in template ? I have this code:
<head>
<script type="text/javascript" src="/dajax/lib/prototype.js"></script>
<script type="text/javascript" src="dajax/src/scriptaculous.js"></script>
</head>
But the problem is, a template pages doesn't have <head></head>, only pagelayout.tpl have it, I try insert this lines in pagelayout.tpl, but my template doesn't work... I need use this js functions in my template... My template have this code:
<ul id="movies_list">
<li id="movie_1">test 1</li>
<li id="movie_2">test 2</li>
</ul>
<script type="text/javascript">
Sortable.create('movies_list');
</script>
Thanks for any help ! [eZ 3.9]
|