Mobile Device Javascript/CSS Support. What's out there?

可紊 提交于 2019-12-03 02:44:53

Both Microsoft and RIM have made emulators of their mobile operating systems available. I highly recommend downloading them. They can piggyback off the host operating system and use your ethernet connection to retrieve URLs and display them as their real-world counterparts.

The BlackBerry browser that shipped on OS4.5 and older will not support jQuery. It barely supports any sort of dynamic HTML. There is a new rendering engine that ships with OS 4.6 and higher (on the Bold, Pearl Flip, Storm, and newer devices) that has pretty good support for DOM Level 2 and CSS. It's not perfect, but a lot of stuff that uses jQuery should work. Note that jQuery adds a lot of overhead to DOM manipulations that considerably slows down the performance of your javascript code. For best results on the BlackBerry, I suggest doing manipulations using DOM methods directly if you can (e.g use document.getElementById('foo') instead of $('foo')) as it is much faster.

The best place for mobile resources are :

WURFL - wurfl.sourceforge.net/

MobiForge - http://www.mobiforge.com

Mobile Elements - http://www.mobileelements.com

In general JavaScript support on mobile phones is pretty poor, either the phone has no JavaScript or the implementation has bugs.

What alot of people do in the industry these days, is make iPhone and Blackberry specific sites and use a service to detect the type of mobile phone browsing the site and redirect to the best site, this way you are able to get the most out of the cool new phones, but also support the older phones.

As for which phones are the most popular for when you are designing your site, the best place is Admob metrics - http://www.admob.com/s/solutions/metrics

But the current list is

  1. Apple iPhone

  2. Motorola Razr

  3. Nokia N70

Last I checked the Windows Mobile IE was a fork from the IE5 codebase, so what worked there, should work on mobile IE. However I recall some limitations (hopefully others can clarify) I was under the impression that the list was not supported.

As for iPhone, outside of flash, it should do whatever Safari does on Windows/Mac.

Blackberry devices use their own proprietary browser, you'll have to see if someone has details on it.

You may be interested in DeviceAtlas, for determining device capabilities.

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