The following JS code worked before on a success of a service request:
if(data.response=="-1") {
$.mobile.changePage("profile_not_saved.html", {transition: "pop"});
}
else {
$.mobile.changePage("profile_saved.html", {transition: "pop"});
Now, when I try to load the page the service is being invoked it just crashes and the Firebug console gives this error:
Do I have to rewrite the JS code?