jquery/jquery-mobile — Issue #3532: Error in Dynamic Page Generation
Author: batura-eneko
Created: 2012-02-03 12:19:15+00:00
State: open

I have a problem with dynamic page generation (http://bat4all.vicomtech.eu/index.html), tested both with Android and iPhone. After I dynamically generate a page, it appears for half a second on the screen, then it disappears for another half a second and finally it is reloaded again.

This happens the second time I access the page. I have generated a minimum setup (available at http://bat4all.vicomtech.eu/index.html with a main menu (index.html), and two options (1.html and 2.html)

The menu page dynamically generates a menu with two options (1.html and 2.html). The text and the link of each option are read from the Javascript within the HTML.

If you select one of the options, the new page is visualized correctly. If you go back (I have deleted the back button to simplify the code) to the menu and then you select any of the options, the page is shown for a second and then it disappears to be reloaded again.

I have tried capturing and/or preventing different events (pagecreate, pageinit, pageshow,…) with no success.

Any ideas, possible solutions or error spotting will be really welcome.

Thanks in advance