使用台式机的用户界面浏览器 [英] Using the browser for desktop UI

查看:99
本文介绍了使用台式机的用户界面浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何使用浏览器作为一个桌面应用程序的UI?我想出了到目前为止的方法也很...

How can I use the browser as a UI for a desktop app? The ways I have come up with so far are...


  1. 使用所有的HTML / JavaScript的。问题:无法访问文件系统或者其它任何东西

  2. 运行一个本地网络服务器,而应用程序正在使用中。问题:我怎么杀了它,当用户做了什么?我的用户是不是技术不够Ctrl + C键。

  3. 嵌入常规GUI浏览器组件。问题:嵌入式浏览器组件往往是出问题的最好的。为Javascript / CSS的支持是永远不会好,因为它是一个真正的浏览器。

  4. ...

理想的解决办法与任何技术工作。我知道有喜欢写Firefox扩展选项,但我想在后台技术和浏览器的独立完全的自由。

The ideal solution would work with any technology. I know there are options like writing Firefox extensions, but I want to have complete freedom in the backend technology and browser independence.

推荐答案

在Windows中,你可以嵌入IE浏览器的ActiveX控件,它使用相同的渲染引擎的IE浏览器。 (这是一个加号和减号),您可以在您的主机code和访问它在Javascript中设置 ScriptObject 属性作为的window.external 做的事情,JavaScript不能做的。

In Windows, you could embed the IE ActiveX control, which uses the same rendering engine as IE. (That's a plus and a minus) You can set the ScriptObject property in your host code and access it in Javascript as window.external to do things that Javascript cannot do.

如果你运行一个本地网络服务器,你可以在那个杀死websever应用程序的退出链接。

If you run a local webserver, you could have an exit link in the app that kills the websever.

这篇关于使用台式机的用户界面浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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