Notes
AJAX Basics
Content of the notes (1)
Page 1
AJAX stands for Asynchronous Javascript and XML.
1. The motive of Ajax:
-> Requesting data from server without reloading the page
-> Sending data to server without reloading the page
-> Used to make callbacks, making round trip to and from the server to retrieve or send data
-> Asynchronous calls to web server, this allows client browser to avoid waiting for all data to arrive before allowing user to act once more
2. Arguments required by AJAX:
-> 1st argument is always the URL, which will provide the required data
-> Then there are multiple optional arguments
->There are 3 main params used in making an AJAX request:
-> URL
->method: GET/POST
->data: data required by the URL to fetch the dynamic result. Example: We've to attach the email to the URL order to fetch the results regarding that URL only.
3. AJAX result:
-> AJAX response will come in success label
-> Then we can perform different operation the response received
Information
- Description
- This topic covers the basic of AJAX.
- Created by
- Mohit Kakkar · Jul 2017
- Updated
- Jul 19, 2017
- Views
- 56
- Tags
- Rating