« Return to Thread: Adding a Javascript function in the head of the page

Adding a Javascript function in the head of the page

by Andres Fortier-2 :: Rate this Message:

Reply to Author | View in Thread

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

 « Return to Thread: Adding a Javascript function in the head of the page

LightInTheBox - Buy quality products at wholesale price