Welcome!

AJAX & REA Authors: John Funnell, Bob Little, Kevin Hoffman, Maureen O'Gara, Onkar Singh

Related Topics: AJAX & REA, Java

AJAX & REA: Article

AJAX Tutorial on Oracle.com

Tutorial Focusses on Enabling Data Exchange in AJAX Applications

A new tutorial on the Oracle Technology Network guides developers through the process of getting AJAX and their Java applications to work well together. The article is titled Enabling Data Exchange in AJAX  Applications and is written by Andrei Cioroianu.

The article focuses on how to transfer data from an AJAX client to a server, using the URL encoding and XML formats. It also guides developers on how to validate the data with XML Schema, extract the needed information with XPath and produce XML or JSON responses on the server side. Finally the article talks about how to handle the XML and JSON responses with JavaScript and how to generate dynamic content that is used to update the Web page in the browser.

The author writes, “The goal of this article is to provide everything you need for implementing data exchange in AJAX  applications, using the best techniques and the most recent APIs. The included sample code is organized in three packages: util, model, and feed. The util package contains classes that provide methods for XML parsing, Schema-based validation, XPath-based querying, DOM serialization and JSON encoding. The model package contains an example data model that can be initialized from an XML document and then converted to the JSON format. You’ll also find a Schema example (used for XML validation) in the model directory. The feed package has classes that simulate a data feed, whose information is retrieved every 5 seconds with AJAX in order to refresh a Web page. The article explains how to avoid a memory leak in the Web browser, by aborting unfinished AJAX  requests and deleting the XMLHttpRequest objects after using them. “

To access the article, please visit http://www.oracle.com/technology/pub/articles/cioroianu-ajax-data.html?rssid=rss_otn_news


More Stories By RIA News Desk

Ever since Google popularized a smarter, more responsive and interactive Web experience by using AJAX (Asynchronous JavaScript + XML) for its Google Maps & Gmail applications, SYS-CON's RIA News Desk has been covering every aspect of Rich Internet Applications and those creating and deploying them. If you have breaking RIA news, please send it to RIA@sys-con.com to share your product and company news coverage with AJAXWorld readers.

Comments (4) View Comments

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


Most Recent Comments
n d 09/10/06 12:25:45 PM EDT

A new tutorial on the Oracle Technology Network guides developers through the process of getting Ajax and their Java applications to work well together. The article is titled Enabling Data Exchange in Ajax Applications and is written by Andrei Cioroianu.

AJAX News Desk 07/29/06 11:57:27 AM EDT

A new tutorial on the Oracle Technology Network guides developers through the process of getting Ajax and their Java applications to work well together. The article is titled Enabling Data Exchange in Ajax Applications and is written by Andrei Cioroianu.

SYS-CON Italy News Desk 06/22/06 10:40:21 AM EDT

A new tutorial on the Oracle Technology Network guides developers through the process of getting Ajax and their Java applications to work well together. The article is titled Enabling Data Exchange in Ajax Applications and is written by Andrei Cioroianu.

AJAXWorld News Desk 06/22/06 08:37:41 AM EDT

A new tutorial on the Oracle Technology Network guides developers through the process of getting Ajax and their Java applications to work well together. The article is titled Enabling Data Exchange in Ajax Applications and is written by Andrei Cioroianu.