Hi I have previously posted a query about calling javascript on window resize and onload. Thanks for the valuable suggestions that were offered. Let me try to make a detailed description of the problem faced.
In my project I am using a layout kid page which is common for the whole project. Layout.kid ========= <html xmlns:py="http://purl.org/kid/ns#" > <head> <script type="text/javascript"> connect(window, "onload", function() { alert("The layout window has loaded!"); }); connect(window, "onresize", function() { alert("The layout window was resized."); }); </script> </head> <body> <div id="wrap"> <div id="header" class="header-border"> <div class="borders" id="nav-column"> </div> <content id="inner-area"> </content> <div id="footer" class="footer-border"> ©2006 </div> </div> </body> </html> Here is another page which uses Layout.kid (py:layout="Layout.kid") SearchPage.kid ============ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#" py:layout="'Layout.kid'"> <head> <script type="text/javascript"> connect(window, "onload", function() { alert("The search window has loaded!"); }); connect(window, "onresize", function() { alert("The search window was resized."); }); </script> </head> <body> <div py:match="item.tag == 'content'" id="inner-area"> <some html> </div> </body> </html> Suppose I am displaying SearchPage.kid. Then the problem I am facing is that the javascript given in the SearchPage.kid is never getting called. i.e. "The search window has loaded!" is not getting printed(or alerted). At the same time the javascript given in Layout.kid is getting called and alert("The layout window has loaded!") is displayed. Is there any way that I can get to know the onload of SearchPage.kid. (I guess the window that is getting displayed is generated by Layout.kid with contents filled by other pages). Is there any way out? Thanks and Regards Roopesh --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

