0

I have a login form on a view and if the login is successful (when the user clicks on the login button) I would like to transition the user to another view. How can I change the click event of the login button to support the successful login and transition to the new view?

<a class="button button-block button-submit" data-role="button" href="#welcome/view.html" data-bind="events: { click: form.submit }">Login</a>
Neophile
  • 5,660
  • 14
  • 61
  • 107

1 Answers1

1

I found the answer here: http://www.telerik.com/forums/button-press-event---transition-to-a-view

I just used AJAX call to allow the user to login and use the success event of that to allow the user to navigate to a different view using the function given below:

app.mobileApp.navigate('home/view.html');
Neophile
  • 5,660
  • 14
  • 61
  • 107