Prototype is a JavaScript framework that provides ease in develpment of dynamic web pages. Prototype.js is a library of javaScript objects and function designed to help you code easier for web applications. The library is particularly useful for Ajax development, as it contains a number of objects that handle Ajax communication, previously requiring lengthy amounts of code. We can use the Prototype library in the development of a Web Run time application.
This article demostrates the use of AJAX functions of Prototype library. The article performs an application which contains four tabs: Tab 1 provides a "Welcome" button- clicking on it, shows a welcome note with time. Tab 2 provides "Hi" button with a space to ener the name and shows "hi, name" output. Tab 3 contains a AJAX log-in form and tab 4 contains a "test JSON" button which shows the JSON Result.
The code snippests for the example is very well explained and provides us idea to use AJAX functions. You can also download the demostrated example from this article. It is really good and interesting. This article will be very helpful to beginners in development of their WRT application.
This article is the part of a serie. Beginners can also go through this serie to get detailed refernce about Prototype.js: Use prototype javascript library in WRT application.