如何启用本地/ Web存储WinForm WebBrowser控件 [英] How to enable Local/web Storage WinForm WebBrowser control

查看:146
本文介绍了如何启用本地/ Web存储WinForm WebBrowser控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的软件开发人员,





使用托管html5 webapp的WebBrowser控件的WinForm应用程序。

它使用两个HTML5功能:

1.应用程序缓存

2.本地存储



应用程序缓存非常完美。 本地存储不起作用。(typeof(存储)==undefined)



请求http://html5test.com时在WebBrowser控件中,它显示:

您正在使用Internet Explorer 11 ....和完全支持,用于应用程序缓存和< b>本地存储。



为了使WebBrowser控件能够处理本地存储,我需要做些什么?



所有提示我正确指导的提示都非常受欢迎。



谢谢先进



Stephan Cassel

解决方案



我不认为这是你想听到的,但 Web浏览器控件是否支持本地存储,应用程序缓存,...... 可能会提供一些见解。





希望有所帮助。


感谢您的回复。



本地存储通过WebBrowser Control非常有效。这是一个导致错误的Ajax错误。离线执行的xmlHttp.send(null)使应用程序(WebBrowser控件)完全崩溃。



再次感谢您的提示

Stephan

Dear software developers,


A WinForm application using WebBrowser control that is hosting html5 webapp.
It use two HTML5 features:
1. Application Cache
2. Local Storage

Application Cache works perfect. The Local Storage does not work. (typeof(Storage) == "undefined")

When requesting http://html5test.com in the WebBrowser control it shows:
"You are using Internet Explorer 11.... " and full support for both Application Cache and Local Storage.

What need I do in order to enable the WebBrowser control to handle Local Storage?

All hints that guid me in the right direction are more than welcome.

Thanks in advanced

Stephan Cassel

解决方案


I don't think it's what you want to hear, but Does web browser controls support local storage,application cache,... may supply some insight.



Hope that helps.


Thanks for all reply.

Local Storage works very well via WebBrowser Control. It was an Ajax bug that caused the error. xmlHttp.send(null) executed offline made the application (WebBrowser control) to crash completely.

Thanks again for your tips
Stephan


这篇关于如何启用本地/ Web存储WinForm WebBrowser控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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