This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
Adding multiple pages in one ajax request does not display requested page #549
Closed
Description
I have the following use case: load a page with links to subpages and those subpages in one Ajax request to limit the number of HTTP requests and to increase the responsiveness of the application. So instead of 1+20 = 21 requests I just use one request with one large response.
1.0a2 however will then display the last <div data-role="page"> rather than the page I requested. A requirement is that all pages have a correct id which matches their fileUrl.
I have a patch against 1.0a2 which solves the issue for me by distinguishing between an Ajax response with one and multiple data-role="page" pages and transitioning to the correct page.
How do I attach a patch to this issue?
Activity
morinel commentedon Nov 29, 2010
Here's the patch
toddparker commentedon Dec 10, 2010
This is on our radar but probably won't get in for 1.0.
scottjehl commentedon Dec 10, 2010
A couple things:
It's possible, but we haven't gotten around to writing it yet. Any takers?
annymsMthd commentedon Feb 5, 2011
This feature is vital to a project I'm working on right now so I will try to refactor it in to the new build. I have the pages already loaded into the dom I just need to assign the data-url attribute and make sure the links work.
toddparker commentedon Feb 15, 2011
This is a good idea but closing and moving to the feature requests page for post-1.0:
https://github.com/jquery/jquery-mobile/wiki/Feature-Requests