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 ORM (Object-Relationship-Model) in Rails?
Do you know what are the types of caching used in rails, what are they?
What is the flash?
Explain how you can run rails application without creating databases?
What are generators in ruby on rails?
Which command is used to create a migration?
What is rails router?
What is the directory structure of rails?
What is the main difference between procs and blocks?
What is rails active record?
What is rails script? Name some of them?
what is sweeper in Rails?
what is “Yield” in Ruby on Rails?
Explain how does rails implement ajax?
what is testing in rails?