Friday, January 16th, 2009

XUI: A JavaScript Library for Mobile Devices

Category: JavaScript, Mobile

Brian Leroux and some of the PhoneGap team have created XUI, a JavaScript library aimed at mobile development. Why?

We hear your words. Why another JavaScript framework?! When development of PhoneGap was under way we noticed slow load times for modern JavaScript frameworks (such as Prototype, MooTools, YUI, Ext and (yes) even jQuery. A big reason why these libraries are so big is because is mostly they contain a great deal of cross browser compatability code. The mobile space has less browser implementations (so far) and different needs. Thus XUI.

XUI strives to be a framework for first class mobile device browsers such as WebKit, Fennec and Opera with future support under consideration for IE Mobile and BlackBerry.

XUI contains code for easy DOM manipulation, CSS, eventing, and JSON.

There is also word of xui-app: a nifty mvc microframework for mobile apps the PhoneGap crew is working on.

Posted by Dion Almaer at 6:10 am

4 rating from 21 votes


Comments feed TrackBack URI

Maybe I’ll get flamed for this, but I feel I must do it anyway…
Ra-Ajax works on iPhone and all devices that can run Opera for devices. And probably most other device browsers (except the older PocketIE versions)
Most of our samples have 8.7 KB of JavaScript…!
I even tested Ra-Ajax with Arora – the experimental browser from Nokia and it worked – right out of the box!
(Well, Arora it seems have some funny behcaior regarding the box-model which created some visual mutations, but all JS worked and even the presentation didn’t look too odd, even thy have th “funny” box-model (probably a bug))
And now with WindowsMobile “upgrading” their browsers to the IE6 codebase I am pretty sure that there won’t be a single browser or device in use that we don’t support and work perfect with…
But good luck with XUI, I think it’s a good idea if for nothing else then to make it easier to develop portable applications for developers and not being dependent upon lock-in APIs/languages to develop “device apps” like Compact Framework and Objective-C/Cocoa etc…

Comment by ThomasHansen — January 16, 2009

Great idea and implementation. Kudos 5+

Comment by oopstudios — January 16, 2009

An honest question: How are you measuring JavaScript size? Is it GZipped? Minified? On this page for example you have 30.9k of JavaScript. So whats included in this number of 8.7k?
But at any rate, its good to see yet another JavaScript library to pick the brain of.

Comment by TNO — January 16, 2009

Thanks for noticing the project Dion and Ben! Rob Ellis deserves much of the credit for the implementation. XUI is still in alpha but we’re furiously documenting and testing so the community can expect a stable release in a few weeks. Contributions and forks on github are welcome (encouraged).

And we think you guys are gonna love xui-app.. =)

Comment by brianleroux — January 16, 2009

Leave a comment

You must be logged in to post a comment.