views:

13825

answers:

7

I don't have any of the devices to test at the moment. I guess I'll start using the emulators later on.

We're looking to offer mobile support. I was wondering how jQuery or even javascript renders in their respective browsers.

What works? What doesn't? Any tips? Advice?

+10  A: 

I've used jQuery on iPhone. Remember that Mobile Safari is not an officially supported browser for jQuery. But it's close enough to Safari that most things work.

If I recall correctly, mousedown event doesn't happen until the mouseup happens, at which point both fire. My guess is that most things will work, but you need to test everything carefully.

My experience is that changing the DOM is unexpectedly slow. Things that fly on the emulator can drag on the device. (You mentioned you'd be using emulators--do NOT trust performance you get on them.)

jQuery might be overkill. I ended up relying on XUI, which gives you a lot of the jQuery stuff, but is much more lightweight, and also gives you touch events. http://github.com/brianleroux/xui/tree/master


ppk has begun testing mobile browsers. http://www.quirksmode.org/m/w3c_core.html

Nosredna
+4  A: 

Do not expect jquery to work much at all on Blackberry. The default browser is very limited in terms of JavaScript and page rendering.

Though opera on Blackberry might be a different story...

AtariPete
I use Opera on my Blackberry and it seems pretty solid for JS library support.
Nosredna
+1 for Opera Mini!
Soviut
In my experience, jQuery pretty much works on BlackBerry, but is impossibly slow.
Fyodor Soikin
+6  A: 

Came across this today and remember reading your post on here. Thought I would include the link for anyone that's interested in this jQuery project for the iPhone:

http://jqtouch.com/

Haven't had a chance to try it out yet, but it seems to replicate a lot of the iPhone interface elements within the browser. I think it shows some promise, and uses a lot of the jQuery conventions.

Since this was posted jQTouch has come a long way. Works well on iPhone and Android devices. Can't vouch for Blackberry, but if you're running Opera on your Blackberry it should work well.
Dwayne
+1  A: 

Does anyone know if jqtouch.com will work on android phones as well? I am looking to bring our traditional web app to iPhone and Android and I am looking for a good UI framework to use, but don't want to have to manage two different sources.

Blake
They both use webkit browsers so they should be compatible.
alord1689
It works on android as well, but there are (minor) differences between the two webkit versions. I don't have any device myself, but have seen it with colleagues (so I can't give detailed information).
M4N
I tested using the emulator on 1.6 and also on the Nexus One -- both were pretty choppy with the animations. I would not recommend it at this time.
jmccartie
I just put live a jQTouch page here: http://quantzphoto.com/mobileworks pretty well in iphone I think, and looks good in the Android 2.0 emulator. Note that this app also uses jQuery Accordion, which is not part of jQTouch
ransomweaver
A: 

I have been told that JQTouch looks even more impressive on Android than on iPhone.

maralbjo
+2  A: 

I use JQTouch on i-phone a lot and think its great. It does not work on Android. JQuery is very, very slow (Android 2.0 HTC Desire and Legend) and as such JQTouch suffers. Also, animations are very poor, worse than WebKit nightly on my Mac, which are fairly flickery... You get the idea but nothing as smooth as the i-phone. I really like the Android platform and JQTouch, but they don't sit well together.

G*

A: 

You can use this new lib: http://www.sencha.com/

Yoo