JQuery Mobile updated page after changePage

Is there a way to get the jQm page to reload after changePage completes?

I have the number of pages dynamically loaded into an array. All downloadable pages are part of the list, for example, โ€œ20 Mobile Apps of 2011โ€ Users must be able to scroll left and right to navigate pages.

I added the current code here: http://jsfiddle.net/cncpts/qMe6Z/2/

Notice how the URL is pulled from the array. From this, I can infer the following URL and the previous URL, but I can only move one page forward and backward.

Here you can test the page by clicking left or right: http://www.cncpts.me/complex/swipe/index.php

Any ideas on how to get the URL to update while maintaining your own JQM jumps.

+6
source share
1 answer

Why aren't you using the JQM pagaintion plugin ? It should be exactly what you are looking for.

If you want to change the URL, you will need to set the changehash parameter to true so that it can change

$.mobile.changePage(next,{ changeHash:true, reloadPage:true, dataUrl:next }); 

Here is the demo link

0
source

All Articles