You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Confirmed. This is kinda annoying as I do like to have separate documents for my pages, but some pages just belongs together in a single document (like a "Remove ListItem" page and a "Confirm removal" dialog/page).
This issue is causing me grief too. I know the recommended approach is to return just one jQm page per HTTP response but it seems overkill to issue another server round trip for something as simple as a confirmation dialog so I'd like to return both of these page parts together.
This approach works fine when I retrieve the page without ajax, but breaks (I get no dialog) when fetching via ajax so I'm currently having to disable ajax fetches for some parts of the site and so losing the nice transitions etc.
Would you accept a pull request to implement multiple pages being returned via ajax? I'm quite tempted to have a go at fixing this unless you have some other approach in mind...
It's a more complex issue to solve than just loading in the multiple pages because we need to deal with registering and tracking these pages in the navigation script. If you want to do a deep dive and try work work this out, that would be great if you submit a pull.
I'm getting the same issue I believe: if a page fetched via ajax contains sub pages, those sub pages won't load at all if linked to from the page, via the usual jqm method of linking to the sub page's ID. Instead, the index page of the site loads again in their place.
Presumably multi page layouts are still allowed (and in turn, linking to those sub pages), even when having been fetched via ajax?
These two pages together form a test to illustrate the problem, if it's of any help:
jQuery Mobile is designed to work with simple page linking conventions. Essentially, you can link pages and assets as you normally would
The goal of this model is to allow developers to create websites using best practices — where ordinary links will "just work" without any special configuration — while creating a rich, native-like experience that can't be achieved with standard HTTP requests.
Activity
robinheghan commentedon Jun 30, 2011
Confirmed. This is kinda annoying as I do like to have separate documents for my pages, but some pages just belongs together in a single document (like a "Remove ListItem" page and a "Confirm removal" dialog/page).
toddparker commentedon Jun 30, 2011
This is the way it works now for technical reasons. We can look into making this work, probably after 1.0.
smoothcontract commentedon Jul 23, 2011
Hi Todd,
This issue is causing me grief too. I know the recommended approach is to return just one jQm page per HTTP response but it seems overkill to issue another server round trip for something as simple as a confirmation dialog so I'd like to return both of these page parts together.
This approach works fine when I retrieve the page without ajax, but breaks (I get no dialog) when fetching via ajax so I'm currently having to disable ajax fetches for some parts of the site and so losing the nice transitions etc.
Would you accept a pull request to implement multiple pages being returned via ajax? I'm quite tempted to have a go at fixing this unless you have some other approach in mind...
toddparker commentedon Jul 25, 2011
It's a more complex issue to solve than just loading in the multiple pages because we need to deal with registering and tracking these pages in the navigation script. If you want to do a deep dive and try work work this out, that would be great if you submit a pull.
tomthetree commentedon Aug 17, 2011
@smoothcontract - when you say it breaks, what happens?
I'm getting the same issue I believe: if a page fetched via ajax contains sub pages, those sub pages won't load at all if linked to from the page, via the usual jqm method of linking to the sub page's ID. Instead, the index page of the site loads again in their place.
Presumably multi page layouts are still allowed (and in turn, linking to those sub pages), even when having been fetched via ajax?
These two pages together form a test to illustrate the problem, if it's of any help:
index.html:
http://pastie.org/2386109
testPage.html:
http://pastie.org/2386111
leopd commentedon Oct 7, 2011
I'm really surprised this issue has been pushed to the back burner. It's quite confusing. The documentation implies this should work. Quoting from http://jquerymobile.com/test/docs/pages/page-links.html
johnbender commentedon Oct 7, 2011
https://github.com/jquery/jquery-mobile/wiki/Feature-Requests
This is registered under feature requests in the wiki.