I would like to use Ajax for dynamic pages that load data from the server, then it is necessary that I learned to use Ajax. But where to start?
In order to create a Ajax application it is required:
- To understand the principles of asynchronous in order not to be surprised.
- Knowing the properties and methods of the XMLHttpRequest object.
In addition some tools to help programming in the best conditions.
For editing, Netbeans is a general purpose IDE that has an Ajax mode and that supports server side programming languages.
For debugging, the Firebug extension for Firefox, allowing to see the content of exchanges between the browser and the server, and also due to its error messages, is an indispensable assistant.
This type of programming marks a break with the procedural logic. The order of instructions execution is no longer the order in the program. Instructions that follow the send() command of the XHR object, can be executed before send has produced a result.
To be sure that an instruction is executed after the conclusion of a request to the server, it must be incorporated into the function assigned to the event handler, which is shown as examples in the tutorial.
It explains the difference between GET and POST methods of HTTP, and the use of text or XML files.
The XMLHttpRequest object
Description of the purpose and methods with demos.
Gradually learn Ajax with examples of GET and POST, the text format and XML.
Interactive demos to help understanding the language.