Answer Posted / moin haidar
Conventional web application transmit information to and
from the sever using synchronous requests. This means you
fill out a form, hit submit, and get directed to a new page
with new information from the server.
When you interact with an Ajax-powered web page, it loads an
Ajax engine in the background. In response to an event web
application passes asynchronous request (XMLHttpRequest or
xhr). In fact it is javaScript object/method that performs
asynchronous interaction with the server, JavaScript object
that performs asynchronous interaction with the server and
behind the scene fetches data. and behind the scene fetches
data.
We do request.xhr? only to check the request type, either
its AJAX request or others(post, get).
| Is This Answer Correct ? | 43 Yes | 11 No |
Post New Answer View All Answers
what is the use of super function in ruby on rails?
What is object-relationship-model (orm)?
what is the difference between new, save and create?
What I have to do to view my project always on browser?
Explain the advantages of ruby on rails?
What is the purpose of require_relative in ruby?
Explain me the log that has to be seen to report errors in ruby rails?
what are benefits of using active record as opposed to raw sql queries?
What are the steps involved in writing and setting up an application in ruby on rails?
how you can create a controller for subject?
Explain dry in rails?
What is the main function of helpers used in ruby on rails?
What are the various components of rail?
Explain how does rails implement ajax?
Where does the start_tabnav gets informations for tabs rendering in ruby rail?