HTML和Web的Web上下文中的JavaScript重定向JS商店应用 [英] JavaScript redirect in web context of HTML & JS store app

查看:134
本文介绍了HTML和Web的Web上下文中的JavaScript重定向JS商店应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到的问题是企业身份验证系统背后的问题。该应用是一个HTML5网络应用,可通过iframe远程加载。这种方法很好,直到集成了身份验证系统;这使用了一个javascript重定向,
WinJS拒绝跟随并记录错误APPHOST9624。

I'm having an issue with an which sits behind an enterprise authentication system. The app is an HTML5 web app which is loaded remotely through an iframe. This works fine, until the authentication system is integrated; this uses a javascript redirect which WinJS refuses to follow and logs an error APPHOST9624.

有没有办法解决这个问题?

Is there a way around this?

推荐答案

Hi Magnus,

Hi Magnus,

JavaScript / HTML5 Windows应用商店应用可以在IFrame中显示HTML,但绝不是为了复制完整功能一个WebBrowser(这是你要求的)。 您可以尝试将所有涉及的URI添加到您的应用程序
清单(内容URI)中,但我不确定它是否适合您。

JavaScript/HTML5 Windows Store apps can display HTML in an IFrame but by no means is this intended to duplicate the full functionality of a WebBrowser (which is what you are asking for).  You can try adding all the URIs involved to your application manifest (Content URIs) but I am not certain that will work for you.

更好的解决方案是实现HTML5 Windows应用商店应用中的Web应用,并利用Windows应用商店应用可以为您提供的UI,控件,合同和功能。 如果HTML5应用程序为您提供了所需的所有功能,
尝试用Windows应用商店应用程序包装它没有多大意义,因为您已经可以在浏览器中运行它。

A better solution is to implement the HTML5 web app in your Windows Store app and take advantage of the UI, Controls, Contracts and functionality that a Windows Store app can give you.  If the HTML5 app as it is gives you all the functionality you need, there is not much sense in trying to wrap it with a Windows Store app since you can run it in a browser already.

-Jeff


这篇关于HTML和Web的Web上下文中的JavaScript重定向JS商店应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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