Created by Mohit Kakkar
over 7 years ago
|
||
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
Want to create your own Notes for free with GoConqr? Learn more.