在基于 ASP.NET Web 的工具中嵌入浏览器
[注:我修改了原来的帖子以提供一些说明 - 我]
有谁知道在网页中嵌入网络浏览器的方法,例如通过 Java 小程序或类似机制?我回顾了有关在 Java 应用程序中嵌入浏览器的各种解决方案的讨论。但是,这不适用于我们基于 Web 的工具,该工具是基于 ASP.NET 框架构建的。使用 Java 小程序是我们当前的想法,但如果您有其他建议来解决此问题,也请发布这些建议!
这是一个基于网络的工具,可以指导初中生、高中生和大学生批判性地阅读网站。该工具提供了一组指导性问题和其他信息,以及围绕正在查看的实际第三方网页的数据输入框。我们工具的目的是允许教师选择网站供学生查看和分析 - 或者允许学生自己选择网站。我们(/该工具)不控制选择哪些网站或类型的媒体。
我们目前正在 IFrame 中加载网页,但该技术在几个方面受到限制。它不提供对我们想要提供的类似浏览器的功能的完全控制,并且对第三方网站和学生使用的浏览器版本的更改非常敏感。我们遇到的最困难的问题与第三方网站上使用的反劫持机制有关。出于充分的原因,它们使用的机制使它们无法加载到 iFrame 中 - 也就是说,当您尝试将页面加载到 iFrame 中时,它将接管整个浏览器窗口。该页面不仅不会在我们的框架内加载,实际上还会使我们的应用程序“消失”,从而使学生无法在我们的工具中使用这些网站,并可能导致学生丢失他们的作业。
该工具的开发花费了数年时间,目前基于用户的需求,出于多种原因,它是基于网络的。我将不胜感激社区的任何建议或见解!
谢谢。
[Note: I have modified my original post to provide some clarifications - m.e.]
Does anyone know of a way to embed a web browser within a web page, e.g. through a Java applet or similar mechanism? I have reviewed the discussion on various solutions for embedding a browser in a Java application. However, this will not work for our web-based tool, which is built on an asp.net framework. Using a Java applet is our current idea, but if you have other suggestions to address this issue, please post those as well!
This is to be used in a web-based tool that guides middle school, high school, and college students to read websites critically. The tool provides a set of guiding questions and other information along with a data-entry box surrounding the actual 3rd party web-page being viewed. The purpose of our tool is to allow teachers to choose websites for students to view and analyze - or allow students to choose the sites themselves. We (/the tool) do not control what sites or types of media are chosen.
We are currently loading the web-page in an IFrame, but that technique is limited in several ways. It does not provide full control for browser-like features we would like to provide, and is very sensitive to changes in both third party web-sites and to browser versions used by students. The most difficult issue we have pertains to anti-hijacking mechanisms used on the third-party sites. For good reasons, they use mechanisms that make them impossible to load into an iFrame -- that is, when you try to load the page into the iFrame, it will take over the entire browser window. Not only will the page not load WITHIN our frame, it will actually make our application "disappear", thereby making it impossible for students to use these sites within our tool, and potentially also causing students to lose their work.
The tool, which has take several years to develop, is currently web-based for a variety of reasons based on the needs of our users. I would appreciate any advice or insights the community may have!
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您有 Web 应用程序(如您所描述的 ASP.NET 页面),请使用基于 Web 的解决方案,即 IFrame 等。Web
浏览器控件无论如何都是桌面解决方案。
If you have web application (ASP.NET page as you described), use web-based solutions, i.e. IFrame, etc.
Web browser controls anyway is a desktop solution.