On Sep 14, 4:51 am, Jon Brisbin <[EMAIL PROTECTED]> wrote:
> I have an Ajax app that is dynamically updating the DOM and in all
> other desktop browsers, the UI updates, including position, window
> scrollY, and other updates are deferred until all the changes are made
> and the result is that there's no flickering of elements on the page.
> I can remove an element from the DOM, scoot other items on the page
> into the space the old element took up, and the user can't tell
> because the UI updates are deferred.
>
> That doesn't seem to happen in the iphone. When I remove an element
> from the DOM, the display is updated immediately, even before the new
> position is applied to the other elements. This causes a "flicker" in
> the UI that doesn't seem to impede functionality, but is pretty
> annoying (given it doesn't happen on desktop Safari 3.1).
>
> Does anyone know of a way to cause iPhone safari to defer UI updates
> until I've had a chance to do all my calculations (or is there some
> other workaround I need to do) to get rid of the "flicker"?
Have you tried creating a document fragment that is not part of the
DOM, doing updates to that, then inserting it into the DOM?
--
Rob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" 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/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---