基于浏览器的界面与图形界面的优点/缺点
我正处于基于桌面的应用程序的设计阶段。由于这个特定应用程序的性质,我相信它将大大受益于基于 Web 的方法(即允许用户通过以 kiosk 模式运行的浏览器与应用程序交互),以便利用 HTML/CSS 的简单性/JS 以及许多出色的 JS 界面插件的可用性。采用这种方法(而不是在本机或跨平台图形库中进行编码)是否会遇到任何问题?
I'm in the design phase for a desktop-based application. Because of the nature of this particular application, I believe it would benefit greatly from a web-based approach (i.e., allowing a user to interface with the application through a browser running in kiosk mode) in order to leverage the simplicity of HTML/CSS/JS and the availability of many great JS interface plugins. Does taking this approach (rather than coding in a native or cross-platform graphics library) come with any gotchas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
那么,您对操作系统和其他域的访问将受到限制。
使用 Adobe AIR 之类的工具如何使用 HTML/CSS/JS 并将其编译成合适的桌面应用程序?
Well, your access to the OS and other domains are going to be limited.
What about using something like Adobe AIR that lets you use HTML/CSS/JS and compile it into a proper desktop app?
请查看 http://www.terrainformatica.com/htmlayout/ - 该库旨在使用 html 和 css 创建桌面 GUI。
Please look at http://www.terrainformatica.com/htmlayout/ - the library which was designed to create desktop GUI using html and css.
制作 Web GUI 的主要“问题”是您需要设置某种类型的 Web 服务器。一个 GUI 应用程序可以只是一个可执行文件。您也(可能)需要一些 GCI 编码来将信息从用户返回到您的程序。一般来说,这可能需要做更多的工作。
与此相平衡的是,世界上任何地方使用自己选择的操作系统和浏览器连接到您的网络服务器的任何用户都应该能够操作您的程序。
The main "gotcha" to doing a web GUI is that you are going to need to set up a web server of some kind. A gui app can be just a single executable. You allso (probably) will need some GCI coding to get information back from the user to your program. In general, it is liable to be a whole lot more work.
Balancing against that is the fact that any user networked to your webserver anywhere in the world using the OS and browser of their choice should be able to operate your program.