Page 1 of 1

Trying to change a Page when a service has an error?

Posted: Sun Jun 09, 2013 7:30 pm
by John Herdean

If Im running a service (a json get response) and that service is being invoked on Show Page, but when theres an error i want to change that page to go to another page and I wrote this JS, but doesnt work (it works fine for a popup):

$.mobile.changePage("no_active_loads.html", {transition: "page"});

Is there something wrong with this JS?

Image


Trying to change a Page when a service has an error?

Posted: Sun Jun 09, 2013 7:54 pm
by Igor

Hello,

Next code should work
code
Appery.navigateTo('Experience', {
transition: 'slide',
reverse: false
});
/code


Trying to change a Page when a service has an error?

Posted: Sun Jun 09, 2013 7:55 pm
by Igor

change "Experience" to yours page name "no_active_loads"


Trying to change a Page when a service has an error?

Posted: Sun Jun 09, 2013 8:08 pm
by John Herdean

yes it seems to work