> And here is the kicker:
> -          In IE only: if you use innerHTML there is a 1ms-100ms lag
> between
> the DOM tree/DOM nodes being updated with your new HTML. However it is
> instantly visible to the user.
>
>
> I have been using innerHTML to insert Ajax retrieved content and applying
> observers to that content using EventSelectors without any problem.
>
> But I'd like to be safe.  Is there a safer way to know when the DOM tree
> is
> ready before applying observers ?

You could use DOM.Ready, specifically the onIdReady() function.

http://openjsan.org/doc/a/au/autarch/DOM/Ready/0.13/lib/DOM/Ready.html
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to