[Seaside] Adding a Javascript function in the head of the page

Philippe Marschall philippe.marschall at gmail.com
Fri Apr 18 20:25:30 UTC 2008


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 at lifia.info.unlp.edu.ar>:
> 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 at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>


More information about the seaside mailing list