无法加载包含错误的网页:框架加载中断 [英] Failed to load webpage with error: Frame load interrupted

查看:827
本文介绍了无法加载包含错误的网页:框架加载中断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到这之前已被问过,但我没有看到任何解决方案:

I see this has been asked before but I dont see any solutions:

So Im使用Cordova 2.5在iOS 6.1.2上构建iPad应用程序

So Im using Cordova 2.5 to build an iPad app on iOS 6.1.2

我的app.coffee:

My app.coffee:

jQuery ->
    class window.AppRouter extends Backbone.Router
        routes: {
            '': 'index',
            ':parent/:child/': 'childView',
            ':id/': 'detailView',
        },

        index: =>
            $("#navbar .title").text("Flight Centre's Choices")
            view = new fc.main.View
            view.render()

        childView: (parent, child) =>
            view = new fc.main.View(parent:parent, child:child)
            view.render()

        detailView: (id) =>
            view = new fc.main.Detail(id:id)
            view.render()

    window.app = new AppRouter();
    Backbone.history.start();

第一个索引视图成功加载并显示为

The first index view loads successfully and displays as it should

现在点击其中一个链接,打开childView,无法加载页面:

Now clicking on one of the links to lets say open childView, it fails to load the page:

2013-03-20 16:56:13.684 Flight[1158:907] Resetting plugins due to page load.
2013-03-20 16:56:13.689 Flight[1158:907] Resetting plugins due to page load.
2013-03-20 16:56:13.694 Flight[1158:907] Failed to load webpage with error: Frame load interrupted

用户点击的链接看起来像这样:

the link the user clicks on looks like this':

/#/foo/bar/

在我的Mac上的Chrome浏览器中一切正常。

Everything works as expected in Chrome browser on my mac.

我不知道这里发生了什么!!

I dont know whats happening here!!

推荐答案

Rather than having the links in the html as :

$ c> /#/ foo / bar /

/#/foo/bar/

应该只是

#/foo/bar/



<

this makes sense, with the leading / the page will reload, and thats why I got that error.

希望它帮助某人

这篇关于无法加载包含错误的网页:框架加载中断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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