如何最好地实现对Web应用程序中多个设备的支持 [英] How best to implement support for multiple devices in a web application

查看:195
本文介绍了如何最好地实现对Web应用程序中多个设备的支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的客户希望商业应用程序支持每个可能的设备。该应用程序本质上是一个Web应用程序和每个可能的设备,我相信包括手机,上网本,ipad,其他浏览器支持设备等。应用程序有点复杂w.r.t.它所捕获的数据和其执行的其他功能(报告)。

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).

如果我继续满足应用程序日益增加的复杂性,我想有更多的机会无法使用其他设备。我想知道Web应用程序是否常规支持多个设备?是否有多个版本的表示层(像许多次我发现m.website.com专用于移动设备)?此外,如果我的应用程序要利用Java脚本,RIA(Flash,SilverLight),那么后果和解决方法是什么?

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是一个基于.Net的应用程序该堆栈还包含Ext JS Java Script库。虽然我想使用它肯定,考虑到我将在Java脚本而不是HTML做很多工作,这可能是一个问题。

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.

推荐答案

你正在使用MVC范例吗?如果是这样,您只需为移动设备,ipads等创建一个视图。如果您的业务逻辑与演示文稿没有完全分离,您将会遇到更困难的时间。

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.

如果您计划充分支持移动设备。不要依赖花哨ajax重的JavaScript作为您的主要UI方法。您的PC视图可以有一些方便,但大多数手机会窒息。

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.

如果您使网站简单,并且可降解,将会是eaiser。 I.E.如果javascript已关闭,您的网站仍然可以正常工作,并且正在使用LYNX进行查看。这也将减少您必须编写的设备特定代码的数量。

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.

这篇关于如何最好地实现对Web应用程序中多个设备的支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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