jQueryMobile,阿贾克斯导航和MVC [英] jQueryMobile, Ajax Navigation, and MVC

查看:116
本文介绍了jQueryMobile,阿贾克斯导航和MVC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

继新移动的MVC 4条功能,我添加了的NuGet包 jQuery.Mobile.MVC 。该软件包安装,除其他事项外,jQuery Mobile的(目前的版本是1.1.0)的1.0.3b一个旧版本并创建 _Layout.Mobile.cshtml 如下:

Following the MVC 4 article on new Mobile Features, I added the NuGet package jQuery.Mobile.MVC. That package installs, among other things, an older version 1.0.3b of jQuery Mobile (the current version is 1.1.0) and creates the following in _Layout.Mobile.cshtml:

$(document).bind("mobileinit", function ()
{
    // As of Beta 2, jQuery Mobile's Ajax navigation does not work in all cases (e.g.,
    // when navigating from a mobile to a non-mobile page), hence disabling it.
    $.mobile.ajaxEnabled = false;
});

我找不到究竟是行不通的任何文件,是否有什么错误的状态可能会申请一个bug,和。在jQuery Mobile的论坛最近的非古相似提的是

I can not find any documentation on what exactly is not working, whether there is a bug filed for it, and what the status of that bug might be. The closest non-ancient similar mention in the jQuery Mobile Forum is

http://forum.jquery.com/topic/ Ajax的导航系统是致病-问题

在这种情况下,OP的问题被认为是设计。

In that case, the OP's issue was deemed "by design".

所以...

为什么会阿贾克斯导航关闭外的即装即用,并且是还在jQuery Mobile的1.1.0一个有效的关注?

Why might Ajax navigation be turned off out-of-the-box, and is that still a valid concern in jQuery Mobile 1.1.0?

推荐答案

此问题MVC 4 Beta版是,如果AJAX导航仍未被关掉了页面导航只是一个导航后停止工作。

This problem with MVC 4 Beta is that page navigation simply stops working after one navigation if the ajax navigation is not switched off.

这仍然在jQuery Mobile的1.1.0有效的关注。我使用MVC 4 beta中使用jQuery Mobile 1.1.0,如果AJAX导航未禁用页面之间的导航是非常不稳定的。

This is still a valid concern in jQuery Mobile 1.1.0. I am using MVC 4 beta with jQuery Mobile 1.1.0, and navigation between pages is very unstable if the ajax navigation is not disabled.

注:的结果
你指的是论坛的帖子不涉及这一问题。该文章是关于在页头没有被更新,这是每个设计值。
<子>(因为这是该OP唯一的问题,我猜他是用MVC 3)

关于当前的工作进度,关系到你的问题:

About the status of this, related to your question:

(...)是否有什么错误的状态可能是(...)

(...) whether there is a bug filed for it, and what the status of that bug might be (...)

我不知道......我也anctious知道这一点。我们希望,当MVC 4正式发布,将是固定的。

I don't know... I am also anctious to know this. Hopefully, it will be fixed when MVC 4 is officially released.

这篇关于jQueryMobile,阿贾克斯导航和MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆