jQM / PhoneGap:当状态= 1时,导航开始? [英] jQM/PhoneGap: Navigation started when state=1 bug?

查看:740
本文介绍了jQM / PhoneGap:当状态= 1时,导航开始?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我克服了一个令人沮丧的问题,jQuery Mobile只是跑到另一个。这里是这个故事:
我使用$ .mobile.changePage()如下所示:

I've overcome a frustrating problem with jQuery Mobile only to run into another one. Here's the story: I'm using $.mobile.changePage() as shown:

<script type="text/javascript">
$(document).on('click', '#submitroll', function(e) {
    e.preventDefault();
    var dieRoll = $("#dieresult").val();

    $.mobile.changePage('valueresult.html', {
        data: {
                arg1: dieRoll
        }
    });
});
</script>

当我点击按钮(#submitroll),它不会转换到valueresult.html页面(与原始页面位于同一目录中)。相反,控制台输出产生以下错误:

When I click on the button (#submitroll), it doesn't transition to the valueresult.html page (which resides in the same directory as the origin page). Instead, the console output produces the following error:


无法加载网页时出错:CDVWebViewDelegate:导航在state = 1时启动

Failed to load webpage with error: CDVWebViewDelegate: Navigation started when state=1

我搜索了该错误,发现了许多结果,其中大部分是指PhoneGap 2.7中的一个错误。我碰巧运行PhoneGap 2.8.1,所以我想/希望这是问题。我注意到PhoneGap 2.9rc1可用(根据发行说明,包括该特定错误的修复),所以我安装2.9rc1只是看看它是否会解决这个问题....而它没有。

I searched on that error and found many results, most of them referring to a bug in PhoneGap 2.7. I happened to be running PhoneGap 2.8.1, so I figured/hoped that was the issue. I noticed PhoneGap 2.9rc1 available (which, according to the release notes, includes a fix to that particular bug), so I installed 2.9rc1 just to see if it would fix the problem.... and it didn't.

但在我通知PhoneGap人之前,我想排除我做错了的(强)可能性。

But before I inform the PhoneGap folks, I want to rule out the (strong) possibility that I'm doing something wrong.

我正在运行jQuery 1.10.1和jQuery Mobile 1.3.1,目前在iOS 6.1上构建/测试。如果任何人有任何建议,如何进行,这将是巨大的。先感谢!

I'm running jQuery 1.10.1 and jQuery Mobile 1.3.1, currently building/testing on iOS 6.1. If anyone has any suggestions on how to proceed, that would be great. Thanks in advance!

推荐答案

对每个人都感兴趣!也许唯一的烦恼为什么这个错误出现,因为新的加载页面可能会产生一些javascript错误!

For everyones interest! Maybe the only reasy why this error appears is, becaus the new loaded page maybe produces some javascript errors!

这篇关于jQM / PhoneGap:当状态= 1时,导航开始?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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