jquery/jquery-mobile — Issue #2676: feature request: class for pages loaded into existing DOM via Ajax
Author: frequent
Created: 2011-10-12 06:54:12+00:00
State: open

Would it make sense to add a special class for pages that are loaded into an existing DOM via Ajax?

Something like:
ui-page-appended

I'm asking, because there are many people wondering in the JQM Forum (and Github, see #2601, #2367) why - if they load a multipage from an already loaded page - only the first page is appended to the DOM and the navigation "seems to break".

Maybe also add some clarification to the Docs.

I guess what really confuses people is that
- they try to load a multipage into an existing DOM,
- don't realize they are getting only the first page
- and when they try to open the 2nd, 3rd, 4th page of the multipage
- the page previously visited is reloaded

Can you display the error message instead? That would solve a lot of confusion.

Thanks!