I'm new to the JQuery world and am starting to work on a JQuery Mobile + PhoneGap application. For the most part, I'm 'getting it' but one thing remains a mystery to me and I can't seem to find the answer:
How do you load new pages?
Here is my screen workflow:
1. A login page (stored on the device) is shown to the user.
2. When the user clicks login, I use the $.get() method to submit the login form to a backend server.
3. The backend server returns some JSON with a result of the login.
4. If the login is successful, the user should be brought to another page ON THE DEVICE, if not, an error is displayed.
I've got steps 1-3 down but I don't understand how to accomplish step 4. Can anyone help? Ideally, the only part of my app I want off the device will be the PHP scripts that will shuffle JSON data back and forth to the app on the users device.
Thanks!
Anthony