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 difference between Active support’s “HashWithIndifferent” and Ruby’s “Hash” ?
List out what can Rails Migration do?
how you define Instance Variable, Global Variable and Class Variable in Ruby?
what are the differences between rails 2.x and rails 3?
What are the different components of rails ?
What are the hashes?
write a program to show the usage of sql in the database file?
what is rake in Rails?
How will be the future for ruby on rails?
Mention the role of rails controller.
How many types of associations relationships does a model have?
Explain the features of ruby on rails.
How you run your Rails Application without creating database ?
How are blocks created?
What is rails active record?