check out 

http://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...
 
<body >
 
which 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@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to