Page 1 of 5
Previous Successful JS Code worked, now no more to change popup on success of service request
Posted: Mon Jun 10, 2013 10:50 pm
by John Herdean
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?
Previous Successful JS Code worked, now no more to change popup on success of service request
Posted: Tue Jun 11, 2013 12:35 am
by Illya Stepanov
Hi John - please double check you have a syntax error 'onError' - on the screenshot you have provided.
Previous Successful JS Code worked, now no more to change popup on success of service request
Posted: Tue Jun 11, 2013 12:46 am
by John Herdean
this JS is exactly the same code I used before and worked just fine... Where do you see a syntax error?
if(data.response=="-1") {
$.mobile.changePage("profile_not_saved.html", {transition: "pop"});
}
else {
$.mobile.changePage("profile_saved.html", {transition: "pop"});
Previous Successful JS Code worked, now no more to change popup on success of service request
Posted: Tue Jun 11, 2013 1:07 am
by Illya Stepanov
Previous Successful JS Code worked, now no more to change popup on success of service request
Posted: Tue Jun 11, 2013 1:29 am
by John Herdean
yes i see that, but where in the code is it wrong?
Previous Successful JS Code worked, now no more to change popup on success of service request
Posted: Tue Jun 11, 2013 1:43 am
by John Herdean
i just dont see where the JS i wrote theres any syntax problem especially since the same exact code was used like a couple weeks ago and worked just fine...
Please point out where in this JS is wrong:
if(data.response=="-1") {
$.mobile.changePage("profile_not_saved.html", {transition: "pop"});
}
else {
$.mobile.changePage("profile_saved.html", {transition: "pop"});
Previous Successful JS Code worked, now no more to change popup on success of service request
Posted: Tue Jun 11, 2013 1:50 am
by Illya Stepanov
There is nothing wrong in this part of the code, please debug it in part that shown in console.
Previous Successful JS Code worked, now no more to change popup on success of service request
Posted: Tue Jun 11, 2013 2:16 am
by John Herdean
well, i clicked on it and got this:
it looks like a bug from your side... please let me know what this is? thanks
Previous Successful JS Code worked, now no more to change popup on success of service request
Posted: Tue Jun 11, 2013 2:18 am
by John Herdean
you can get there with this url:
http://appery.io/app/mobile-frame?src...
Driver Login My Profile
Previous Successful JS Code worked, now no more to change popup on success of service request
Posted: Tue Jun 11, 2013 2:27 am
by Illya Stepanov