On 1/25/07, Jorge Godoy <[EMAIL PROTECTED]> wrote:
> Sometimes I have problems with timing and the speed that IE takes to update an
> element with the dynamic information I've sent.  In Firefox things work faster
> and it looks like that right after I created the DOM object and inserted it on
> the webpage I can manipulate it (e.g. selection which option in a SELECT tag I
> want to be shown as selected) but in IE it appears that I have to wait for the
> screen to be drawn / rendered to be able to manipulate objects.
>
> Is there some event or MochiKit facility that will return when an object is
> ready to be worked with?  I'd like to avoid trial and error with "callLater"
> to solve that and minimize the time it takes to update the page.

Have you tried simply "callLater(0, func)"? That should execute the
function in the next event loop, and I assume IE finishes all
rendering/dom manipulation before invoking javascript events.

I'm not 100% sure though, in the browsers js implementation,
setTimeout(..., 0) might be handled as a special case and run right
away. I doubt it though.

Arnar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to