williamsandonz
williamsandonz

Reputation: 16420

Jquerymobile programmatically reload page without duplicating page in DOM

I have an annoying issue, I want to reload the page I am on programmatically, whilst maintaining a page transition, but I don't want to double it up in the DOM!

Upvotes: 1

Views: 4208

Answers (1)

GerjanOnline
GerjanOnline

Reputation: 1881

Can you post your relevant code? What function do you use?

You are aware of the properties of changePage?

$.mobile.changePage("#pageId", { allowSamePageTransition : true, reloadPage: true } );  

Otherwise you can always remove the previous page yourself

$('#pageId').live('pageshow',function(event, ui){
  $(ui.prevPage).remove();
});

Upvotes: 1

Related Questions