Get the latest on:webOS Developers' RSS FeedwebOS Facebook page webOS Twitter Feed

Home Getting Started with webOS webOS and the Prototype Javascript Framework

webOS and the Prototype Javascript Framework

webOS skill level: Beginner
Technologies covered: Prototype Javascript Framework
Prerequisite knowledge: Advanced-level HTML, CSS, and Javascript, AJAX

Palm has announced that the Mojo toolkit will be bundled with the Prototype Javascript framework "to assist with registering for events and DOM handling among many other great features".  The Prototype Javascript framework is a third party, open-source AJAX framework "that aims to ease development of dynamic web applications".  This is not to be confused with the prototype object in Javascript, which is a programming construct built into the Javascript core since version 1.1.

This is a good article on Prototype and AJAX:


For an overview of how Prototype extends the DOM, read this article:


Or if you prefer to get into the nuts and bolts, the full API Documentation:


Prototype also supports a number of UI controls and widgets.  How many of these will actually be supported in webOS (if any) remains to be seen.  Mojo may provide a similar set of widgets that provide superior performance because they could be supported by the hardware (e.g. hardware graphics acceleration).

In terms of the application performance you might expect when using the Prototype framework, it looks like Prototype is not one of the faster frameworks out there.  So keep this in mind if you intend to rely heavily on the Prototype framework in your applications.


Got a suggestion for this article?  Leave us a comment!



  1. Do you have to explicitly include the Prototype library in an application's index.html, or is it somehow included in mojo.js? If you have to include it what's the path?

  2. Hi Friend,

    Is Ajax Webservice request are also based on Prototype Javascript framework in addition to XMLHTTPrequest.

    "keep in mind if you intend to rely heavily on the Prototype framework in your applications."

    I use XMLHttpRequest in my application. Is there any other way to make web request other than Ajax? And which is the best one to use among XMLHTTPRequest and Ajax request?


Add Comment

    • >:o
    • :-[
    • :'(
    • :-(
    • :-D
    • :-*
    • :-)
    • :P
    • :\
    • 8-)
    • ;-)