UPDATE: I added data-dom-cache="true" to the page div and that seemed to fix the problem.
I have a complex page that is called like this.
function compareProps() {
var cdata = $("#frm_likelist").serialize();
$.mobile.changePage('/pagebr/compareprop.php',{
'type': 'post',
'data': cdata,
'reloadPage':false
});
}
That page has a button that calls a dialog page to edit some data. I call the dialog like this.
function editlike(id) {
$.mobile.changePage('/pagebr/likeProperty.php',{
'type': 'post',
'data': 'listingid='+id,
'reloadPage':false
});
};
This all works well until I hit the back button to go back to compareprop page then then JQM gets compareprop.php which returns a blank page because it is depending on a post to render the page correctly. What I need is for compareprop to be restored as it was previously.
How can I do that?
Thanks.