AJAX Tutorials

The History of AJAX

  • 2007-09-04
  • Comments
  • Emiley J
  • 877

In the beginning, there was the World Wide Web. Compared with desktop applications, web applications were slow and clunky. People liked web applications anyway because they were conveniently available from anywhere, on any computer that had a browser. Then Microsoft created XMLHttpRequest in Internet Explorer 5, which let browser-side JavaScript communicate with the web server in the background without requiring the browser to display a new web page. That made it possible to develop more fluid and responsive web applications. Mozilla soon implemented XMLHttpRequest in its browsers, as did Apple (in the Safari browser) and Opera.
Read More

To use or not to use AJAX

  • 2007-09-04
  • Comments
  • Emiley J
  • 877

When you use Ajax techniques to update portions of a web page, the user gains responsiveness and fluidity. However, the user also loses the ability to bookmark and to use the browser's back button. Both of these drawbacks stem from the same fact: the URL does not change because the browser has not loaded a new page.
Read More

How to Make an HTTP Request in AJAX

  • 2010-11-28
  • Comments
  • Ram Baskar
  • 877

In order to make an HTTP request to the server using JavaScript, you need an instance of a class that provides you this functionality. Such a class was originally introduced in Internet Explorer as an ActiveX object, called XMLHTTP. Then Mozilla, Safari and other browsers followed, implementing an XMLHttpRequest class that supports the methods and properties of Microsoft's original ActiveX object.
Read More

Handling the Server Response in AJAX

  • 2010-11-28
  • Comments
  • Ram Baskar
  • 877

Remember that when you send the request, you provide the name of a JavaScript function that is designed to handle the response. eg:
Read More

A complete sample program in AJAX

  • 2010-11-28
  • Comments
  • Ram Baskar
  • 877

Here is a complete AJAX example with a simple HTTP request. Our JavaScript will request an HTML document, test.html, which contains the text "I'm a test." and then we'll alert() the contents of thetest.html file.
Read More

XML vs JSON in AJAX

  • 2009-01-17
  • Comments
  • Emiley J.
  • 877

If you are working with AJAX, you probably use either one of them or both of them. However there are pros and cons of using each of them. One major drawback of using XML is the speed. XML requires two tags for every data point. These additional data in transmission between the server and the client slows down the data exchange and wastes bandwidth.
Read More

Most Viewed Articles on AJAX

Latest Tutorials

Subscribe to Tutorials

Related Tutorials

How to Make an HTTP Request in AJAX

Handling the Server Response in AJAX

A complete sample program in AJAX

XML vs JSON in AJAX

Creating JSON objects using Java in AJAX

The History of AJAX

To use or not to use AJAX

Archived Comments

1. it provides manna in the studies of java to me
View Tutorial          By: aravinden at 2011-12-27 08:18:18

2. Thanks ...it is really nice .superb site to learn
View Tutorial          By: hari at 2012-12-12 07:41:16

3. This is a nice introduction. Thanks a lot.
View Tutorial          By: Provas Kumar Saha at 2010-04-26 02:38:34

4. thanks a lot dude,my lecturer took 2 weeks to expl
View Tutorial          By: praveen malinga at 2010-02-25 07:53:01

5. Thanks
View Tutorial          By: Bad Programmer at 2011-11-23 10:43:49

6. Hi to All,
I am working on struts based apl

View Tutorial          By: Ishmayel at 2009-02-19 21:27:14

7. Hello sir pls send me
com.sun.speech.freet

View Tutorial          By: nikunj at 2011-08-19 06:55:37

8. package practice_bo;

import practic

View Tutorial          By: nishi at 2011-12-09 02:00:20

9. thanks!
View Tutorial          By: leny at 2014-12-09 04:00:44

10. nice...cleared this example....
View Tutorial          By: Waqas Mughal at 2010-03-13 21:21:46