[Seaside] Adding a Javascript function in the head of the page
Andres Fortier
andres at lifia.info.unlp.edu.ar
Fri Apr 18 19:28:23 UTC 2008
Hi list,
I'm pretty sure that this must be a silly
question, but I can't find the way to do it. I
basically need to define a javascript function in the
header of my page. Specifically I need:
<head>
...
<script type="text/javascript">
//<![CDATA[
function myFunction() {...}
//]]>
</script>
...
</head>
I've tried adding it in the #updateRoot: by doing
something like:
updateRoot: aHtmlRoot
super updateRoot: aHtmlRoot.
aHtmlRoot javascript contents: /javascript code/
but it doesn't work. So, any hints are really appreciated.
Thanks in advance,
Andrés
More information about the seaside
mailing list