i have in jquery mobile when i passing parameter using change page.
$("#mytest-listview div.mytest-title a").live('click', function (event,data) {
var cid = $(this).attr('id');
console.log(cid);
$.mobile.changePage('../mytestdetail/',{ type: "get", data: {"id":cid} , reloadPage:false, changeHash:true });
$('#pgMyTestDetail').live('pageshow', function(){
var id = $.urlParam('id');
doLoadMyTest(id);
});
$.urlParam = function(name){
var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href);
return results[1] || 0;
}
event.preventDefault();
});
when i click on mytest title it pass the id of mytest to url and then i get the id value and show the all detail of mytest. here is url /test/testdetail/?id=26 , but when i get test detail page and i hit the ctrl+R it refresh the page but not show the test detail. whats the problem?