#3036 new
Alex K

iOS 6, UIWebView, Prototype: Old content is removed before new is loaded

Reported by Alex K | April 24th, 2013 @ 01:15 AM


This behavior only started with some recent iOS update.

I have some data displayed inside the container.
When i call ajax.updater to reload the content info, entire old content is removed, window repositioned (scroll) and then few seconds after new contend is loaded. The height is constant in all blocks i am loading.

This behavior creates flickering and repositions scroll bars to the the of the page.

Before, it would only replace the old content with the new, once it is all loaded, without any animation, in instant.

Did a lot of googling with no result.
Prototype call: var myAjax = new Ajax.Updater('response', 'engine.php', {method: 'get', parameters: pars, evalScripts: true});

iOS 6.1.3, 6.1.2, current Prototype

Thank you

Comments and changes to this ticket

  • Jason Westbrook

    Jason Westbrook April 24th, 2013 @ 08:41 PM

    Have you built prototype from the git repo vs the download on the site?

  • Alex K

    Alex K April 24th, 2013 @ 10:37 PM

    Downloaded on the site. Also tried different versions.

    As production demanded immediate solution, i have rewritten my code with jQuery (using .load) and this solved the problem. So this must be a prototype specific ajax implementation issue.

    Thank you

  • Alex K

    Alex K April 24th, 2013 @ 10:45 PM

    Also everything works fine at iOS 5.1.1 (latest available for iPad 1)

  • Jason Westbrook

    Jason Westbrook April 25th, 2013 @ 04:59 AM

    Can you put together a jsfiddle as an example that I can replicate the problem and include a solution in the next version?

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket