如何最好地在 Web 应用程序中实现对多个设备的支持
我的客户希望业务应用程序能够支持“所有可能的设备”。所讨论的应用程序本质上是一个 Web 应用程序和“所有可能的设备”,我相信包括移动电话、上网本、ipad、其他浏览器支持设备等。该应用程序对于它捕获的数据和它执行的其他功能(报告)。
如果我继续尊重应用程序不断增加的复杂性,我想它更有可能无法在其他设备上运行。我想知道Web应用程序通常如何支持多个设备?是否有多个版本的表示层(就像我多次发现 m.website.com 专用于移动设备)?此外,如果我的应用程序要利用 Java Script、RIA(Flash、SilverLight)那么后果和解决方法是什么?
我的是一个基于 .Net 的应用程序,堆栈还包含 Ext JS Java 脚本库。虽然我肯定想使用它,但考虑到我将在 Java Script 而不是 HTML 中完成大量工作,这可能是一个问题。
上述问题的答案可以是描述性的。如果已经有规定,请分享链接。谢谢。
My client would like a business application to support 'every possible device'. The application in question is essentially a web application and 'every possible device', I believe encompasses mobile phones, netbooks, ipad, other browser supporting devices, etc. The application is somewhat complex w.r.t. the data it captures and other functions it performs (reporting).
If I continue to honor increasing complexity in the application, I guess there are more chances of it not working on other devices. I'd like to know how web applications support multiple devices conventionally? Are there multiple versions of presentation layer (like many times I find m.website.com dedicated for mobile devices)? Further, if my application is to take advantage of Java Script, RIA (Flash, SilverLight) then what are the consequences and workarounds?
Mine is a .Net based application and the stack also contains Ext JS Java Script library. While I would like to use it for sure, considering that I would be doing a lot of work in Java Script rather than HTML, this could be a problem.
The answer to the above could be descriptive. If there is something already prescribed out there, please share the link(s). Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您正在使用 MVC 范例吗?如果是这样,您只需为移动设备、ipad 等创建一个视图。如果您没有将业务逻辑与演示文稿完全分离,那么您将面临更加困难的 bug 困扰。
如果您计划完全支持移动设备。不要依赖“花哨的”ajax 重磅 JavaScript 作为您的主要 UI 方法。为了方便起见,你的电脑视图可以有一些这样的功能,但大多数手机都会卡住。
如果您使网站变得简单且可降解,那么一切都会变得更容易。如果 javascript 关闭,您的网站应该仍然可以工作,并且他们正在使用 LYNX 来查看它。这也将减少您必须编写的设备特定代码的数量。
You are using the MVC paradigm right? if so you just create a view for mobile devices, ipads etc. If you don't have your business logic cleanly separated from presentation, you will have a much harder bug-ridden time.
If you plan on supporting mobile devices fully. don't rely on "fancy" ajax heavy javascript as your primary UI methodology. Your PC view can have some of this for convenience, but most mobile phones are going to choke.
It will be eaiser all around if you make the site simple, and degradable. I.E. your site should still work if javascript is turned off, and they are using LYNX to view it. This will also decrease the amount of device specific code you have to write.
卡比尔。
当客户说“每种可能的设备”时,这是一个很好的机会来反驳并定义“每种”设备的含义。我建议他选择类似以下层次结构的内容:
1)级别 1:过去 3 年使用默认或主要替代浏览器的设备
操作系统/浏览器:Vista/Win7:IE 7 和 IE 7 8、火狐3.0+
Mac OSX:Safari
Vista/Win7:Chrome
智能手机:
iPhone/手机游猎(全部)
Android:Chrome(全部)
RIM Blackberry(过去 3 年)系列
平板电脑:iPad
2) 2 级:过去 5 年的设备 + 二阶浏览器
添加 Windows XP/IE6
添加 Windows + Opera
添加Palm Pre/Treos等
添加火狐2.0
添加 iPod Touch(足够简单)
添加诺基亚 Symbian - 默认浏览器
3) “所有可能的设备”
iPod Touch
添加带有 WAP 移动浏览器的功能手机(祝你好运!)
Kabeer.
When a client says "every possible device", that's a great opportunity to push back and define what "every" device means. I would suggest something like the following hierarchy for him to pick from:
1) Level 1: Last 3 years of devices with default or major alternative browsers
OS/Browser: Vista/Win7: IE 7 & 8, Firefox 3.0+
Mac OSX: Safari
Vista/Win7: Chrome
Smartphones:
iPhone/Mobile safari (all)
Android: Chrome (all)
RIM Blackberry (last 3 years) series
Tablet: iPad
2) Level 2: Last 5 years of devices + 2nd order browsers
Add Windows XP/IE6
Add Windows + Opera
Add Palm Pre/Treos etc.
Add Firefox 2.0
Add iPod Touches (easy enough)
Add Nokia Symbian - default browser
3) "Every possible device"
iPod Touches
Add feature phones with WAP browsers for mobile (good luck with that!)