Dojo v1.5, which should be released in the coming weeks, will contain an early beta of a new infrastructure for building Mobile Apps. Currently it is called dojox.mobile.app, but that is expected to change. Check out the test apps (the bottom section) at http://www.skynet.ie/~sos/misc/dojoxMobile/tests/dojox/mobile/tests , which work best in WebKit, so use Safari or Chrome for best results.
Jared Jurkiewicz and Yoshiroh Kamiyama recently added the dojox.mobile project. It provides some very nice widgets for use on mobile phones, such as views that can transition between each other, rounded lists, tab containers etc.
Hence, dojox.mobile.app is born.
It is built on top of dojox.mobile, but adds many new features, with more on the way.
- Templated views that can be pushed and popped off the stack of views, all of which are lazily loaded.
- Templated lists
- Input widgets
- Image Gallery
- Dialog Boxes
- Popup Menus
are all available now. The structure of a dojox.mobile.app application is modeled very closely to a webOS app. The templates and code are in a similar folder structure, and the lifecycle for creating and destroying (popping) scenes/views are very similar.
The goal of dojox.mobile.app is NOT to replace or duplicate the functionality in PhoneGap. PhoneGap provides low level access to many phone features. dojox.mobile.app aims to provide an easy to use, flexible application structure, and many widgets that you will find useful, all themed to appear native to each platform. In a real world app, it would make most sense to use both PhoneGap and dojox.mobile.app.
One of the cooler widgets currently available is the ImageView widget, check it out at http://www.skynet.ie/~sos/misc/dojoxMobile/tests/dojox/mobile/tests/imageControlsApp . Some of its features include
- Canvas based
- Touch capable
- Swipe across to change images
- Tap to zoom in, and then swipe to move around an image
- Progressive loading of images – first load a small version of an image, and later a larger version
dojox.mobile.app is currently tested mostly on the iPhone, but will soon support webOS and Android also. The mobile world is an exciting place to be right now, and Dojo is jumping in feet first