Event.observe(window, "load", myHandler);
Using the behavior lib raises other issues as far as keeping handles on your event handlers for when you need to clear them (if you ever start dealing with full blown componentized UI based applications and have to deal with memory management issues) --
On 6/16/06, Alex Duffield <[EMAIL PROTECTED]> wrote:
check outhttp://bennolan.com/behaviour/______________________________________________________________________
Alex Duffield . Principal . InControl Solutions . http://www.incontrolsolutions.com
On 16-Jun-06, at 1:10 PM, Sam wrote:I have a piece of code that "waits" for body onload. Every 30ms, it tests $('body').Seems that isn't always good enough. I've hit situations where the DOM is "partially" loaded somehow.I fixed matters by setting a global flag...<bodywhich provides a better test... of course I could always<body >but I had wanted to keep my HTML markup JS free... Is there a reliable way to test for body loaded and not include an onload handler in the HTML markup?Sam_______________________________________________Rails-spinoffs mailing list
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
_______________________________________________ Rails-spinoffs mailing list [email protected] http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
