I am building a jQuery mobile application using PhoneGap. I have to open a new page by passing some parameters of perivous page using jQuery mobile. For this I have tried to use local storage, like this:
$("li").click(function(){
console.log("hi");
var index = $(this).index();
console.log("index"+ index);
window.localStorage.setItem("date",userArray_date[index] );
window.localStorage.setItem("title",userArray_title[index] );
window.location.href='mypage.html';
});
On another page I retrieved values like this:
var display_date = window.localStorage.getItem("date");
var display_title = window.localStorage.getItem("title");
$("#Date_Leaf").append(display_date);
$("#Title_Leaf").append(display_title);
This is working properly on an Android phone but does not work on Windows 7 phone. Can anybody tell me where I am going am wrong please?