I've a very simple question, but I can't find the correct way to resolve. I have a phonegap app wich has a login, and I check the results with ajax. I check the form when the user click:
<a href="home.html" data-transition="pop">GO</a>
The order of the instructions are: 1- The user clik GO. 2- Check the form inputs. 3- IF they'e corrects, go home.html
I can't do a
window.location.replace('index.html');
because I lost the data-transition.
Another option could be make a link hidden, and trigger his click when necesary, but I dont like it.
The best way it's when click at Go, do something, and if It's necesary go to his href.
Thanks for all !