支持 Web 应用程序的多个显示器
我有一个客户要求,他们希望在 2 个不同的显示器(监视器)上有不同的 Web 应用程序窗口:一个屏幕上的数据查找和输入,另一个屏幕上的文档查看器。文档查看器将基于 Flash 或 Silverlight,并加载在网页中。该应用程序将至少部分基于 SharePoint。两个窗口之间需要进行通信:例如,当在“数据”视图中单击新任务时,需要在另一个窗口中打开随附的文档。
据我所知,困难在于:
- 从 Web 应用程序中打开两个窗口
- 主动将窗口定位在 2 个显示器上
- 两个窗口之间的通信
- 从用户的角度来看是尽可能稳健的解决方案(例如,重新打开关闭的窗口,跟踪它们之间的变化等)
我正在寻找完成这项工作的指针。我知道我可以从 Javascript 启动第二个窗口,但这并没有给我太多的控制权。该解决方案将在封闭、受控的环境中运行,因此将解决方案限制为特定浏览器(最好是 IE8+)或需要安装其他软件/组件是没有问题的。
I have a customer requirement where they would like to have different windows of a web application on 2 different displays (monitors): data lookup and entry on one screen and a document viewer on the other. The document viewer will be Flash or Silverlight based and loaded in a webpage. The app will be at least partially based on SharePoint. There is a need for communication between the two windows: when for instance a new task is clicked in the "data" view, the accompanying document needs to be opened in the other one.
The difficulties as far as I can determine:
- Opening the two windows from within a web app
- Actively position the windows on the 2 displays
- communication between the two windows
- as robust a solution as possible from a user perspective (e.g., re-opening a closed window, tracking changes between them, etc.)
I am looking for pointers in getting this done. I understand that I can launch the second window from Javascript, but that does not give me a lot of control over it. This solution will run in a closed, controlled environment, so limiting the solution to a specific browser (preferably IE8+) or the need to install additional software/components is no problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我是你,我会使用 silverlight 和 asp.net mvc 来实现它。
创建一个描述 2 个窗口状态的状态对象,该对象可以由 silverlight 应用程序通过 Web 服务使用和更新,也可以由 mvc 应用程序通过 javascript、回发或 Web 服务使用和更新。
If i were you i would implement this with silverlight and asp.net mvc.
create a state object which describes the state of the 2 windows, this can be consumed and updated by both the silverlight app via web services, and the mvc app via javascript, postbacks or web services.