0 votes
in AJAX by
When should we use Ajax GET request and Ajax POST request?

1 Answer

0 votes
by

Use of HTTP GET or POST methods by Ajax depends on particular scenarios.

These are:

When data for the given URL requested does not change, the HTTP GET request should be used by Ajax.

HTTP POST is used for consistent web application architecture and for the updated state on the server.

Conclusion

Ajax is a technology to send or receive data asynchronously from client to server that returns data from the server without page reload.

Various technologies like DOM, JavaScript, ActiveX, XMLHttpRequest, HTML, XHTML and CSS are used by Ajax. Various protocols are used by various Ajax frameworks for quick data transfer without page reload.

We hope this guide on popular Ajax Interview Questions will help you prepare for your interview. We wish you all the best!

Related questions

0 votes
asked May 15, 2022 in AJAX by Robin
+2 votes
asked Nov 26, 2022 in AJAX by SakshiSharma
...