in the jQuery mobile example. The page that will be displayed after a form is submitted is the same as where the form will be POST-ing/GET-ing to.
Is it posible to submit forms to a URL and transit to another page inside the DOM?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can add an event handler for the
submitevent for the form and submit the form manually, then manually transition to whatever page you want.Some Notes:
data-ajax="false"to the form tag.e.preventDefault()stops the form from submitting normally, areturn false;at the end of the event handler should do the same thing.$.post– http://api.jquery.com/jQuery.post/.serialize()– http://api.jquery.com/serialize/$.mobile.changePage()– http://jquerymobile.com/demos/1.0rc1/docs/api/methods.html