AJAX : Java Glossary
home A words local find no local find frame, full screen Google search web for topic jump to footer translate with Babelfish by Roedy Green ©1996-2008 Canadian Mind Products
Go to : 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-3
ISBN10:0-9766940-8-5clickcounter
publisher:Pragmatic Bookshelf
published:2006-04-10
by:Pragmatic Bookshelf
Covers Ajax with Java, .NET, and Ruby on Rails server frameworks.
Canadian flag amazon.ca. amazon.com. American flag
Canadian flag chapters.indigo.ca . powells.com American flag
French flag amazon.fr. barnesandnoble.com American flag
German flag amazon.de. amazon.co.uk. UK 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.18] The information on this page is for non-military use only.
You are visitor number 9,018. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/Mindprod website mirror)
http://mindprod.com/jgloss/ajax.html J:\mindprod\jgloss\ajax.html