I notice that the page I was just browsing is still in the DOM. Is there a way to delete the last page viewed after going to a new page using changePage ()?
I turned off all reverse navigation, as I do not want the usage to return to the last page when switching to a new page.
Any suggestions?
Site Stream:
- main page-> fill in the information-> send to changePage ()
- next page-> fill out more-> send to changePage ()
- etc...
After submitting the page, I no longer need
UPDATE:
Here is the first page:
<div data-role="page" id="first_page" data-theme="z" data-backbtn="false" data-url="first_page" class="ui-page ui-body-z">
He adds something to this when adding a new page:
<div data-role="page" id="next_page" name="next_page" data-theme="z" data-title="next_page" data-url="getNextPage.php?page=next_page" class="ui-page ui-body-z">
The call to live () is as follows:
// pageName[index] = next_page $('#'+pageName[index]).live('pagecreate',function(event, ui){ $(ui.prevPage).remove();
using changePage () as follows:
$.mobile.changePage('getNextPage.php?page='+pageName[index],'slide',false,false);
Phill pafford
source share