JAVASCRIPT - HOW TO PROPERLY USE AJAX HTTP REQUEST OBJECT - Javascript Source Code http://vb6code.com/j1
JAVASCRIPT - HOW TO PROPERLY USE THE AJAX HTTP REQUEST OBJECT INCLUDING THE VARIOUS EVENTS OF THE AJAX OBJECT
The Ajax object is a very powerful tool that allows us to communicate with the web server, in the background. The Ajax object is repleat with multiple events so we can continually be updated as the what is going on with the Ajax object while it is working.
Step #1 - Create the Ajax Object
While quite often, code for creating the Ajax object is a simple one line var ajaxRequest = new XMLHttpRequest();, while in most cases this will work, in some Javascript environments, this method of creating the Ajax object will fail and so will any of your resulting code.
A more complete and safe way to create the Ajax object and ensure that it is created is to create a variable that calls a function that creates the Ajax object taking into account other possible various Javascript environments is to create a variable that calls the function that creates the Ajax object and then the funtion returns the successfully created Ajax object ... http://vb6code.com/j1