如何在webbrowser控件中启用javascript? [英] How do I enable javascript in webbrowser control?

查看:628
本文介绍了如何在webbrowser控件中启用javascript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个使用Citrix服务器启动Windows应用程序的Web应用程序。

Windows应用程序有一个web浏览器控件。

当Windows应用程序独立在Citrix服务器上启动时,网站在webbrowser控件中打开没有问题。

但是当它通过我的Web应用程序启动时,webbrowser控件不会加载javascript。它显示内容阻止错误。它不会触发任何事件并在网页上显示消息

注意:由于您的浏览器不支持javascript,您必须按一下继续按钮才能继续





我的尝试:



我在Citrix服务器上的Internet Explorer上启用了脚本。

在可信站点中添加了我的应用程序URL。

但以上都没有为我工作。

Hi,
I have a web application which launches a windows application using Citrix server.
Windows application has a webbrowser control.
When windows application is launched stand alone on Citrix server, web site opens in webbrowser control with no problem.
But when it is launched through my web application, the webbrowser control does not load the javascript. It shows content blocked error. It does not fire any event and show message on web page as
"Note: Since your browser does not support javascript you must press the Continue button once to proceed
"


What I have tried:

I enabled the scripting on Internet Explorer on Citrix server.
Added my application url in trusted site.
But none of the above worked for me.

推荐答案

我创建了一个组策略并输入了我通过WebBrowser控件访问的受信任区域中的站点。

现在它正常工作。
I created a group policy and entered the sites in trusted zone which I am accessing through WebBrowser control.
Now it works fine.


这篇关于如何在webbrowser控件中启用javascript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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