What is AJAX?

You are here

Asynchronous JavaScript And XML.

AJAX is a set of features in Javascript which enables the web browser to send and receive data without refreshing the page.

Without AJAX each time the user clicks a link, a button, or submits a form the browser needs to fetch a new page from the server. This restriction slows the user's progress as each click requires them to download a full page.

By enabling applications to send and receive data via AJAX we can record user input and manipulate the page in real time. This makes the web application behave more like the desktop applications users are already familiar with.

How is AJAX used?

AJAX is most useful when a process requires multiple steps to complete. Let's say you needed to search a database for users, select a user, and edit that user's last name.

Without AJAX you'd need to create these separate steps:

  1. Search for users
  2. Display search results
  3. Display edit user form
  4. Acknowledge changes

To make more changes you'd need to repeat the entire process.

Using AJAX we could achieve better results by creating fewer but more dynamic pages. Searching for users and displaying results would be combined into a single step. By combining multiple steps we can speed up the process of data entry.

Other Resources

If you would like to investigate further here are a number of good resources for more information.

Wikipedia - Ajax

About.com - What is Ajax?

See Also:
Learn More  Learn More

If you'd like to learn more about these technologies we've written several primers to get you started:

Done right, right here.  

All our work is performed by qualified, experienced developers right here in America.

Talk to Us  Talk to Us

Find out what we can do for your business. Contact us to arrange a demonstration, get a price quote, or just ask questions.

Better still, call us and speak to a Drupal developer right here in Northern Virginia.

(703) 879-6985