Skip to content

plugin: forms.ajaxForm

daviddesloovere edited this page Oct 29, 2010 · 3 revisions

Put data-role="ajaxform" on a form element and it'll be handled through Ajax. Server response should follow our ui-page/ui-header/ui-content/ui-footer model, and the default behavior is that the plugin will replace the ui-content div on the active page with the ui-content element from the response, and call mobilize on it. Demo: http://jquerymobile.com/demos/1.0a1/experiments/ajax-search/_search.html Note: form action points to a static page here: _search-results.html