Response title
This is preview!
<form id="frm_saveaffiliate" action="/admin/affiliate_setup/savesharefees" method="post">
I am trying to submit a form using the default ajax call
What is "the default ajax call"?The default action of JQM.
You can easily use Ajax to submit a form using $.ajax() . Use built-in Javascript .serialize() to encode the form data.$.ajax() will not post a file to upload.
But just a guess from a Google search on "ajaxSubmit". Did you ask the author if it works with jQuery Mobile and/or for any hints and tips on how to use it with jQuery Mobile? Checked the documentation and GitHub Issues? Google search?
$.ajax() will not post a file to upload.
You could use a pagecontainerbeforeload event callback, but it would be a very strange and complicated way to do it, and would provide no benefit that I can think of.Take a standard JQM single page with a form tag and text box and file text box and a submit button. When the user clicks the submit button, how do I stop navigation? How do I attach a callback to respond to the ajax() post that JQM submits?
© 2013 jQuery Foundation
Sponsored by and others.