AJAX Tutorials

The History of AJAX

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

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
  • 725

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
  • 727

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
  • 725

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
  • 728

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.
  • 725

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

Ask a Question

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. Hi Everyone, i tried the code. im using this code.
View Tutorial          By: sourabh at 2011-09-09 12:42:02

2. HELP ME HOW TO ANALZE THE PROGRAM??????????
View Tutorial          By: MICHELLE FLORES at 2009-01-21 23:24:52

3. Can u please help me to implement traversing forw
View Tutorial          By: Rahi at 2015-09-18 11:12:32

4. thanx a lot.............!!!! u r best..........
View Tutorial          By: Pratik at 2010-04-12 12:41:30

5. Its of the type "Direction"...Enum type
View Tutorial          By: Avinash at 2010-10-29 04:53:35

6. i am trying to create a handy and powerful barcode
View Tutorial          By: incoming barcode scanner at 2014-06-23 04:23:42

7. can client use prinwriter?????
View Tutorial          By: sujay at 2009-02-20 00:23:33

8. thanx mitra...it helped alot.
View Tutorial          By: psuyog at 2014-10-10 12:16:26

9. but include<iostream> is main function.
View Tutorial          By: glen at 2009-02-03 22:19:22

10. nice
View Tutorial          By: ravi at 2010-11-26 02:46:56