views:

1300

answers:

3

I'm aware of several Javascript frameworks that assist in creating webapps for the iPhone and ipod Touch:

I'm leaning towards Ciui but want your thoughts.

Which toolkit do you use for iPhone webapps?

Thanks,

Larry

ADDED following from the answers:

  • Sproutcore
  • JQuery Mobile -- still under development. From the JQuery team
  • JQtouch -- superset of JQuery. Possible issue of library size
  • Cappuccino -- comment by Ryan McCuaig: by 280 North. In philosophy, they're porting Cocoa and Objective-C to the Javascript environment (right down to Objective-C style syntax extensions to Javascript and reusing NIB files. Quite incredible).
  • Wink
  • xui
  • Jo by Dave Balmer (blog). Designed to work with PhoneGap, it can be used to build web apps for iPhone, iPad, Android, plus native apps (via PhoneGap) for iPhone, Android, webOS, and Symbian. See the demo video. Set res to 720p to read the screen.
  • Zepto.js
A: 

According to the Flickr team, for which I have much respect, you shouldn't use frameworks. Instead, focus on wringing out all performance possible via small size and careful http queries:

"1. Don’t Use a JavaScript Library or CSS Framework "

Flickr developer blog post

Andrew Pouliot
Thanks for the pointer to the post. Note that their quote is referring to general libraries such as jquery or YUI 2.x. In fact, later in their post, they note that they started by using the iphone-specific iui library.
Larry K
I read that as "don't use desktop-oriented frameworks." I think xui is what iPhone webapps should use. http://github.com/brianleroux/xui/tree/master
Nosredna
+1  A: 

Apple has provided some tools within Dashcode to quickly make basic native-looking web apps.

But...

I've been finding that I get buried in great big incomprehensible masses of div and event-listener spaghetti working down at the jQuery/Prototype level. We're looking into moving up a couple of levels of abstraction into MVC frameworks. What we feel we need is the web app equivalent of Cocoa Touch.

The two we're investigating are:

  1. Sproutcore, which I understand is used by Apple for their Mobile Me web apps,

  2. Cappuccino, by 280 North. In philosophy, they're porting Cocoa and Objective-C to the Javascript environment (right down to Objective-C style syntax extensions to Javascript and reusing NIB files. Quite incredible).

Ryan McCuaig
+1  A: 

There is also this new framework here called wink, apparently, it is also working on Android: http://www.winktoolkit.org

Ryan Oneil
Thanks for the info.
Larry K