On 11/16/06, roopesh <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> I want to call a javascript while the page reloads. So in the KID page
> I tried putting the javascript call in the body tag :
>

My suggestion would be to use MochiKit's signal module[1].  You can
then use statements like:

<script type="text/javascript">

connect(window, "onload", function() {
    alert("The window has loaded!");
});

connect(window, "onresize", function() {
    alert("The window was resized.");
});

</script>

[1]: http://mochikit.com/doc/html/MochiKit/Signal.html

Lee
-- 
Lee McFadden

blog: http://www.splee.co.uk
work: http://fireflisystems.com

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to