jQuery Mobile’s form submission is handled automatically with AJAX. However it isn’t clear how to handle the Response. I want to update the page with some JSON coming back from the server. Do I need to disable jQuery Mobile’s form AJAX?
jQuery Mobile’s form submission is handled automatically with AJAX. However it isn’t clear how
Share
I recommend reading about
progressive enhancementwhich is a main idea with which jQuery Mobile’s architecture was created. The answer from the server should be a new HTML document with correct content so that it works with no-JS browsers as well. jQuery Mobile is there to make it come in via AJAX.If you want to break this rule you have to post the data yourself like you always did with jQuery’s
.post()