WAP Site vs. Traditional HTML for a Mobile Website

泄露秘密 提交于 2019-12-03 17:20:00

WAP 2.0 = XHTML Mobile Profile. I'm assuming by WAP you mean WAP 1.0 and WML. Pretty much all mobile browsers these days support XHTML MP (or some close cousin).

For best practices on mobile development, refer to the dotMobi Mobile Web Developer's Guide.

I suggest you use something like WURFL to auto-detect mobile browsers, and serve them XHTML MP with Wireless CSS. I've built a mobile front-end for an application in this way, and it works well across lots of mobile browsers (mobile ie, opera, openwave, ...).

You shoud use standard XHTML 1.0 Strict or XHTML Mobile Profile. WAP is going to die very, very soon (if it hasn´t already).

http://en.wikipedia.org/wiki/XHTML_Mobile_Profile

Slimmed down HTML.

WAP sites are universally ugly, in my view, and with mobile browsers becoming more capable, Ajax applications are increasingly possible (and can work well with the limited bandwidth/data plans that people may have.

But if you need to support every mobile device on the planet, you may have to do something with WAP anyway.

What are your target devices? Everything, modern-ish phones, smartphones only....?

Having developed a few mobile applications I would say that the majority of clients support HTML. It is of course safe to serve these clients a slimmed down version of HTML in order to design your application for the common denominator. However, there is still a significant number of clients which only accept WML as their content type and thus HTML cannot satisfy all your users.

If you read the HTTP_ACCEPT header you can determine what the client is able to understand. In my experience it is safer to serve HTML whenever you can and fall back on WML when you have to.

The bottom line is that if you are reluctant to supporting two versions of your site, use slimmed down HTML (preferably XHTML). If you can support WAP in addition to HTML it makes a nice fallback for the clients which do not understand HTML.

Do remember that WAP has strengths of it's own that normal HTTP sites browsed from mobile handsets do not posess.

A major one is that you can get access to WAP billing, where you can charge small amounts of money from customers that may not have credit cards available.

Also you can use the MSISDN (mobile phone number) to uniquely identify and track visitors to you WAP site.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!