webOS 3.0 Is Based on Enyo, a New HTML Framework

| by Abel Avram Follow 9 Followers on Jul 05, 2011. Estimated reading time: 1 minute |

 HP launched TouchPad, a tabled based on webOS 3.0, on July 1st. webOS 3.0 has a completely new application framework that generates web applications that can run in any WebKit browser.


HP entered the tablet market with HP TouchPad on July 1st, a year after purchasing Palm along with webOS, the Linux-based operating system that powers it. In the same time they made available webOS SDK and PDK 3.0, a set of tools for developers interested in writing applications for HP TouchPad.

HP prepared webOS 3.0 for tablets (TouchPad has 1024 x 768 pixels) but support for smartphones and other form factors will follow. HP replaced the Mojo application framework with Enyo, a framework that is fully prepared for the web. Developers use the SDK to write JavaScript applications that are later converted into HTML that can run into a WebKit browser window, be it the webOS browser or a WebKit desktop browser such as Google Chrome or Apple Safari.

For those not happy with JavaScript development the PDK (Plug-in Development Kit) offers the option to create C/C++ applications that are converted into browser plug-ins, or even JavaScript-C/C++ hybrid applications, the final result remaining in the domain of web applications. The PDK includes a GCC compiler, Simple DirectMedia Library (SDL) and OpenGL library for additional support for multimedia and games.

Enyo consists of a number of UI controls and utilities that resemble a DOM node and are actually converted into one upon processing. This is how a control looks like:

enyo.create({   nodeTag: "span",   className: "a-css-class",   style: "color: purple;",   content: "Hello World" }).renderInto(document.body);

And this is the resulting HTML:

<span id="control" class="a-css-class" style="color: purple;">Hello World</span>

Legacy Mojo applications are supported by webOS 3.0 through compatibility mode, but developers need to use earlier emulator images because SDK 3 supports only the TouchPad emulator. As a side note, the emulator runs on VirtualBox, a virtualization product from Oracle.

Development with SDK can be done on Windows, Mac OS X and Linux, while PDK is integrated with Visual Studio on Win and Xcode on Mac, but it is not supported on Linux.

Rate this Article

Adoption Stage

Hello stranger!

You need to Register an InfoQ account or or login to post comments. But there's so much more behind being registered.

Get the most out of the InfoQ experience.

Tell us what you think

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread
Community comments

Ugh by N T

Sounds like a load of crap to me. Why go jumping through all these layered hoops to develop for a platform that is a non-starter? If I were launching a new tablet OS, I would basically make it as simple and mainstream as possible to begin with. What are all these cross compilation / conversion malarkies?

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

Allowed html: a,b,br,blockquote,i,li,pre,u,ul,p

Email me replies to any of my messages in this thread

1 Discuss

Login to InfoQ to interact with what matters most to you.

Recover your password...


Follow your favorite topics and editors

Quick overview of most important highlights in the industry and on the site.


More signal, less noise

Build your own feed by choosing topics you want to read about and editors you want to hear from.


Stay up-to-date

Set up your notifications and don't miss out on content that matters to you