Introduction
AJAX stands for Asynchronous JavaScript and XML. AJAX is not a new programming language, but a new way to use existing standards.
AJAX is the art of exchanging data with a server, and updating parts of a web page - without reloading the whole page.
Asynchronous JavaScript and XML?
A is for “asynchronous”Requests can be made asynchronously or synchronously.
Both techniques allow web page to be updated without refreshing it.
JA is for “JavaScript”Typically JavaScript is used on the client-side (in the browser).
Any language that accept HTTP requests and return HTTP responses can be used for server side.
X is for “XML”Request and response messages can contain XML.
Can really contain any text (single text value, delimited text,…)
Why we need AJAX?
- Faster than the normal approach.
- More Interactive.
- Allows Asynchronous calls.
- Less Bandwidth usage.
- Ajax is server-agnostic.
Normal Approach
AJAX Approach
What are required to make a Ajax call?
The following components are required to make a Ajax call.- HTML.
- Cascading Style Sheets.
- Java Script & DOM.
- XmlHttpRequest / ActiveXObject.
- XML & JSON.
No comments:
Post a Comment