Silverlight 4 OOB应用程序在WebBrowser控件中访问页面的HTML DOM [英] Silverlight 4 OOB application access HTML DOM of the page in WebBrowser control

查看:77
本文介绍了Silverlight 4 OOB应用程序在WebBrowser控件中访问页面的HTML DOM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道是否可以访问和操纵由Silverlight 4 WebBrowser控件呈现的html页面中的元素。

Does anybody know if it is possible to access and manipulate an element in the html page that is rendered by the Silverlight 4 WebBrowser control.

这种情况是这样的。用户以增强的信任度启动Silverlight OOB应用程序。用户在应用程序中处理一些数据,但必须将部分数据提交到外部网站。如果我在WebBrowser控件中打开外部站点,是否可以通过编程访问DOM预先在外部站点的Web表单中填写一些信息来帮助用户?

The scenario is like this. The user launches a Silverlight OOB application with elevated trust. The user manipulates some data in the application but must submit part of the data to an external web site. If I open the external site in a WebBrowser control, is there any way I can assist the user by pre filling some information in the external sites' web form via programmatic access to the DOM?

推荐答案

快速解答:否。

长答案:
OOTB + WebBrowserControl的初衷是帮助客户烘焙两种RTF格式的显示(电子邮件,RSS等),同时提供以下功能:

Long Answer: The original intent for the OOTB + WebBrowserControl was to help customers bake in both Rich Text Format displays (Email, RSS etc) and at the same time provide the ability for printing support for large documents to occur (reports etc).

iframe与该控件一样适用于iframe(据我所知没有任何规则)计划对此进行更改)。

The same rules apply for iframe as you have with this Control (as far as I know there isn't any plans to change this).

您刚才提到的情况使我有些紧张,因为我可以看到Silverlight团队中的一些人提出了安全方面的问题-因为可以使用作为通过Silverlight自动进行网站等上的DOS攻击的一种有效方式(毫无疑问的有效负载)(即使信任度较高的用户也经常被诱骗安装这样的东西-事实很抱歉)。.

The scenario you just mentioned made me a little nervous as I can see a few of the guys on the Silverlight team raising the issue around security - in that this can be used as a way to automate DOS attacks on websites etc via Silverlight as the unsuspecting payload (even with elevated trust users are often duped into installing things like this - its the reality sorry)..

-
Scott Barnes /前Silverlight产品经理。

- Scott Barnes / Former Silverlight Product Manager.

这篇关于Silverlight 4 OOB应用程序在WebBrowser控件中访问页面的HTML DOM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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