jQuery Mobile的 - 阿贾克斯是默认启用的,但我得到的POST刷新整个页面 [英] Jquery Mobile - Ajax is enabled by default but I get full page refresh on POST
本文介绍了jQuery Mobile的 - 阿贾克斯是默认启用的,但我得到的POST刷新整个页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我创建使用 jQuery Mobile的
应用 ASP.NET MVC
和jQuery Mobile的文档中它提到阿贾克斯默认情况下启用了页面过渡上点击一个链接或提交表单。
I created a jQuery mobile
application using ASP.NET MVC
and in the jQuery mobile documentation it's mentioned that Ajax is enabled by default for page transitions on clicking a link or submitting the form.
- 在我的情况下,当我提交表单,
- 我得到一个完整的页面刷新和我没有看到纺纱加载器。
- 我得到的空白页的闪光,然后页面被加载。
- 我的页面类似,其中一个问题将选项列表中显示,选择,然后单击下一步的调查页面。
- 当用户点击下一步它提交表单,并通过控制器读取下一个问题。所以,我不知道我错过了什么。
请指教
在此先感谢
推荐答案
您可以尝试关闭页面transitions.Jquery移动还在不在网页很流畅transitions.May是导致该问题。
You can try out to turn off the page transitions.Jquery mobile is still not very smooth in page transitions.May be that is causing the problem.
$(document).on( "mobileinit", function() {
$.mobile.defaultPageTransition = "none";
});
请参阅
<一个href=\"http://stackoverflow.com/questions/11029427/jquery-mobile-flickering-screen-during-transitions\">jQuery转换过程中移动闪烁的屏幕
这篇关于jQuery Mobile的 - 阿贾克斯是默认启用的,但我得到的POST刷新整个页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文