John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

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

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

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

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

Hello,

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

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

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

change "Experience" to yours page name "no_active_loads"

John Herdean
Posts: 0
Joined: Tue May 14, 2013 3:56 am

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

yes it seems to work

Return to “Issues”