Javascript Function

Javascript Tutorials, Ajax , Validation, Calculator, DOM

Introduction to AJAX

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

Open an AJAX Request

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

Response Event Handler

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

Send the Request

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

Passing Parameters

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

Success or Failure

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

Response Type

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

responseText and responseXML

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

Setting Response Type

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

Javascript Object Notation

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...
Page:[«]1[2][»]

Powered By http://www.javascriptfunction.com Godaddy Promo Code

Copyright http://www.javascriptfunction.com/. All Rights Reserved.