<div>
                    Sabine,</div><div><br></div><div>as you're using jQuery, you shouldn't need to use onLoad(). Instead use the jQuery function like so:</div><div><br></div><div>jQuery(function(){</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>// on load code here</div><div>});</div>
                <div><div><br></div><div>The function that's passed as parameter to jQuery() is executed when the page is ready (like onLoad) or when you load more html, then it's executed when that html is ready.</div><div><br></div><div>In Seaside you can use the html-document's #addLoadScript: method, which will call the jQuery function as long as you use the JQScriptGenerator. See WAWelcome class&gt;&gt;initialize on how to tell your application to use that script generator.</div><div><br></div><div>To add a load script, do something like:</div><div>&nbsp;html document addLoadScript: (…)</div><div>or &nbsp;</div><div>&nbsp;html div script: (..).</div><div>The later can be a bit tricky though as it overrides the script's ID.</div><div><br></div><div>Kind Regards</div><div>Karsten</div><div><br></div><div><br></div>--&nbsp;<br><div>Karsten Kusche - Dipl. Inf. (FH) - karsten@heeg.de</div><div>Georg Heeg eK - Köthen</div><div>Handelsregister: Amtsgericht Dortmund A 12812&nbsp;</div><div><br></div></div>
                 
                <p style="color: #A0A0A8;">Am Donnerstag, 4. Juli 2013 um 16:00 schrieb Sabine Knöfel:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><div>Hi</div><div><br></div><div>I use JQUILayout.</div><div>(In my app, on the left is a menu, in the center different pages depending</div><div>on the menu selection).</div><div><br></div><div>For opening a certain page in the center, after clicking in the menu, I make</div><div>something like:</div><div><br></div><div>html &lt;&lt; (html jQuery: #center) html: theView.</div><div><br></div><div>This opens and renders the page -&gt; ok.</div><div><br></div><div>But it does not perform the onLoad() script of theView.</div><div><br></div><div>If I force the same page to reload, the onLoad() (Stg+F5), then fires.</div><div><br></div><div>I think I should send something to theView and need a hint for this.</div><div>Sabine</div><div><br></div><div><br></div><div><br></div><div>--</div><div>View this message in context: <a href="http://forum.world.st/how-call-onLoad-script-tp4697350.html">http://forum.world.st/how-call-onLoad-script-tp4697350.html</a></div><div>Sent from the Seaside General mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.</div><div>_______________________________________________</div><div>seaside mailing list</div><div><a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a></div><div><a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>