Something like
updateRoot: aHtmlRoot
super updateRoot: aHtmlRoot.
aHtmlRoot javascript add: /javascript code/
should work. It's not very intuitive, sorry. In recent version of Seaside:
updateRoot: aHtmlRoot
super updateRoot: aHtmlRoot.
aHtmlRoot javascript with: /javascript code/
should work as well
Cheers
Philippe
2008/4/18, Andres Fortier <
andres@...>:
> 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
> _______________________________________________
> seaside mailing list
>
seaside@...
>
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside>
_______________________________________________
seaside mailing list
seaside@...
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside