开发者

Form post problem because of ajax navigation using asp.net mvc with jquery mobile

开发者 https://www.devze.com 2023-01-26 01:51 出处:网络
I have a login form in the inner pages but because jQuery Mobile uses AJAX navigation I am not able to post that form when the page is AJAX loaded. But if I put rel=\"exte开发者_如何学Crnal\" in the l

I have a login form in the inner pages but because jQuery Mobile uses AJAX navigation I am not able to post that form when the page is AJAX loaded. But if I put rel="exte开发者_如何学Crnal" in the login link at home page the login form is posted easily but then i lose the cool features provided by jQuery Mobile. Is there any way to post the form while not using rel="external" at the home page?


Disable AJAX form submission on the login form. Per the documentation:

To prevent form submissions from being automatically handled with Ajax, add the data-ajax="false" attribute to the form element. You can also turn off Ajax form handling completely via the ajaxFormsEnabled global config option.

0

精彩评论

暂无评论...
验证码 换一张
取 消