AJAX : Java Glossary

go to home page A words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish by Roedy Green ©1996-2009 Canadian Mind Products
index page for letter ⇒ punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
AJAX
(Asynchronous JavaScript and XML) is a competitor to Applets. AJAX is not a language or a software package or even an interface. It’s a word someone invented for the generic concept of having JavaScript talk directly to the server without reloading the HTML page. There are any number of possible ways of implementing AJAX. The most common is to use the non-standard XmlHttpRequest class, which is available from JavaScript in most major browsers.

The major defining characteristic, though, is the asynchronous aspect of the technology. Even XML is in there by coincidence; people describe things as “AJAX” applications when they don’t use XML at all. There is no new language or file format here. There’s no specification; no definition of what AJAX is or is not. There are no special tools. There’s no visual appearance that could be created except what you could do with a web browser, HTML, JavaScript, and CSS anyway. In fact, if you were allowed to stub out the data, you could write any AJAX application with only those basic client-side web technologies.

AJAX is typically a generic JavaScript program to allow thin clients to do field validation (by asking the server) without refreshing the entire page. Google uses it for maps. It works by sending standard HTTP queries to the server. Your application specific code all lives on the server.

The AJAX-like approach has three main advantages over Applets.

  1. JavaScript generally starts faster than an Applet. The browser preloads the JavaScript run time, but delays loading the Applet JVM until first use. The load overhead for JavaScript gets buried in the browser start up time, when the JVM load gets blamed on the first Applet. The JVM is a much bigger and more complex animal than the JavaScript runtime.
  2. AJAX is really just HTML and JavaScript and CSS, so it acts like a web browser. That is, you can resize the window and expect to see text and tables wrapped and presented in all the normal ways. All the UI kludginess of Applets is gone.
  3. JavaScript is not constrained by the same tight sandbox restrictions as Java. Your users don’t have to deal with the geekiness of signed Applet permission granting.
Java Applets have the following advantages over AJAX: Microsoft has embraced Ajax and renamed it Atlas, which presumably means they are busy figuring out how to lock Ajax apps into Microsoft and make sure Java apps stop running.

Books

book cover recommend book⇒Pragmatic Ajax, A Web 2.0 Primer
 paperback
ISBN13:978-0-9766940-8-3impressioncounter
ISBN10:0-9766940-8-5impressioncounter
publisher:Pragmatic Bookshelf
published:2006-04-10
by:Pragmatic Bookshelf
Covers Ajax with Java, .NET, and Ruby on Rails server frameworks.
UK flag abe books.co.uk abe books.ca Canadian flag
UK flag amazon.co.uk. amazon.ca. Canadian flag
German flag abe books.de chapters.indigo.ca. Canadian flag
German flag amazon.de. abe books.com American flag
French flag abe books.fr amazon.com. American flag
French flag amazon.fr. barnes and noble.com American flag
Italian flag abe books.it powells.com American flag
Spanish flag iberlibro.com abe books anz Australian flag

CMP homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.58]
You are visitor number 11,286.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/ajax.html J:\mindprod\jgloss\ajax.html