最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

asp.net - Mobile Device JavascriptCSS Support. What's out there? - Stack Overflow

programmeradmin7浏览0评论

I'm about to begin an ASP.NET application that will be targeted towards iPhones, Blackberries, and Windows Mobile browsers. Aside from the iPhone, I haven't been able to find much information on what technologies these platforms support.

Since I'm used to developing for desktop browsers, I like using things like jQuery and advanced CSS features. It looks like I won't be able to use these things on a mobile platform.

What I was wondering is if anyone knew good developer's resources where I could find what works for mobile browsers (like a quirksmode for mobile devices).

As far as I know, jQuery won't work on mobile browsers (besides the iPhone). Does anyone know of any attempts to port jQuery in some form to mobile browsers? I say jQuery because that's what my existing website uses and I'd like to keep consistency, but if there are offerings from other frameworks, I'd be interested in checking them out too.

UPDATE
I wanted to update this to let anyone know who might stumble upon this question. The person who runs the site quirksmode has recently begun creating Mobile Device patibility tables. You can check them out here:

/

I'm about to begin an ASP.NET application that will be targeted towards iPhones, Blackberries, and Windows Mobile browsers. Aside from the iPhone, I haven't been able to find much information on what technologies these platforms support.

Since I'm used to developing for desktop browsers, I like using things like jQuery and advanced CSS features. It looks like I won't be able to use these things on a mobile platform.

What I was wondering is if anyone knew good developer's resources where I could find what works for mobile browsers (like a quirksmode for mobile devices).

As far as I know, jQuery won't work on mobile browsers (besides the iPhone). Does anyone know of any attempts to port jQuery in some form to mobile browsers? I say jQuery because that's what my existing website uses and I'd like to keep consistency, but if there are offerings from other frameworks, I'd be interested in checking them out too.

UPDATE
I wanted to update this to let anyone know who might stumble upon this question. The person who runs the site quirksmode has recently begun creating Mobile Device patibility tables. You can check them out here:

http://quirksmode/m/

Share Improve this question edited Oct 9, 2009 at 0:19 munity wiki
3 revs
Dan Herbert
Add a ment  | 

5 Answers 5

Reset to default 3

Both Microsoft and RIM have made emulators of their mobile operating systems available. I highly remend 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/

MobiForge - http://www.mobiforge.

Mobile Elements - http://www.mobileelements.

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

发布评论

评论列表(0)

  1. 暂无评论