Saturday, December 22, 2007
AJAX (Asynchronous Javascript and XML) is like DHTML in that it is a combination of several existing technologies rather than being a single technology. In this case the technologies involved are...
Saturday, December 22, 2007
Having created our AJAX object the next thing that we need to do is to initialize (or open) the object. To be able to do this we need to know what server side proce...
Saturday, December 22, 2007
As we are making an asynchronous request to the server we are not going to wait around for the server to send back its reply (as we would with a synchronous request). We therefore need a way to d...
Saturday, December 22, 2007
Now that we have an event handler defined to test for when a resonse to our request is received we are now ready to send our request to the server. We do this by adding one extra line to our code...
Saturday, December 22, 2007
Before we move on to looking at how to deal with what we get returned from our AJAX request and how to set up the server side processing to create that response, let's first look at how we ca...
Saturday, December 22, 2007
We already have our method set up ready to handle the information passed back from our AJAX request and have the if statement in place that confirms that the request is complete. Of course just b...
Saturday, December 22, 2007
If you are the one creating the entire AJAX application then you ought to know exactly what format you expect to get your response in. We can of course confirm this by checking the content type d...
Saturday, December 22, 2007
In the last tutorial we looked at how we can determine whether the response is XML or plain text. The reason why we must know the answer to this (either by knowing what the server side script is ...
Saturday, December 22, 2007
If the content on the server that you are going to retrieve is static then what is returned is rather obvious - response.xml contains XML and response.txt contains plain text. Where you are ...
Saturday, December 22, 2007
There are a number of standard formats that have been adopted for AJAX to use to pass the response back from the server. The one that gives AJAX its name is XML. Another is JSON (Javascript Objec...