Below are few major features of Ajax
Q1. What are the steps of creating an AJAX request?
The steps for creating an AJAX request are as follows:
Q2. What is Ajax? LIst few benefits using AJAX?
Below are a few advantages of Ajax.
Q3. What is difference between Asynchronous and Synchronous code?
The difference between Asynchronous and Synchronous code can be stated as in synchronous code tasks are performed one at a time and only when one is completed, the following is unblocked. It means you need to wait for a task to finish to move to the next one. Whereas in asynchronous operations, on the other hand, you can move to another task before the previous one finishes.
Q4. RIA Stands For what?
RIA Stands For Registered Investment Advisor.
Q5. For what XMLHttpRequest object is used?
The XMLHttpRequest object is used to exchange data with a server behind the scenes. It enables the developer to update a web page without reloading the page. Request data from a server after the page has loaded.
Q6. How to create an request object?
You can create a request object with $myRequest = new Request(); creates the object with method = 'GET' .
Q7. What are various Httpo status codes returned by AJAX?
The various Http status codes returned by AJAX are as follows:
Q8. How to cancel the current request in AJAX?
You can cancel the current request in AJAX by calling xhr. abort() whether it's jquery ajax object or native XMLHTTPRequest object.Instead of aborting, you can also choose to ignore all AJAX responses except for the most recent one.
Q9. What does AJAX stand for?
Q10. When should you use the POST HTTP method with AJAX?
You can use POST when dealing with long requests. It can be stated that if you're sending large amounts of data, or sensitive data over HTTPS, POST is used.
Q11. What is difference between JSON and JSONP?
The difference between JSON and JSONP can be stated as JSON is a standard format that is human-readable used to transmit information from one server to another server. Whereas the Jsonp is JSON with padding that means it is a JSON with the ability to transmit information to another domain.
Q12. Which jQuery method is used for handling errors in an AJAX response?
The ajaxError() method is a method that can serve as a centralized place for AJAX request error handling. It is the jQuery method is used for handling errors in an AJAX response.
|AJAX used to send and receive data between a web browser’s objects and another source usually a web server commonly over HTTP.||JSON is a simple data format that could be read by any human being. It can send via AJAX but can be used for other purposes besides AJAX.|
|AJAX message entirely dynamic means it doesn’t have any specific structure.||JSON message always defines one well-defined Object structure|
|AJAX is mainly used for designing the web page, especially when the page needs some server-side data without refreshing the same.||JSON is mainly using for Restful Web Service, which is not used for specific web applications.|
|It is always used for web applications||JSON is sometimes not used for a web application at all.|