RE: iframe ... does it have an innerHTML ?

mpeters-aUYv5hkjw45l57MIdRCFDg@public.gmane.org
Sat, 01 Jul 2006 19:02:47 -0000

> 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.