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 concern and application_controller.rb in ruby on rails?
List out the few features of Ruby?
What is the difference between symbol and string?
how does ruby on rails use the model view controller (mvc) framework?
Mention all the naming conventions in ruby on rails.
what is the role of Rails Controller?
what is the difference between redirect and render in Ruby on Rails?
What are the different components of rails ?
How is the model view controller framework used in ruby on rails?
how you can run Rails application without creating databases?
What is the purpose of require_relative in ruby?
what is the naming convention in Rails?
What is ruby on rails & why it is used for?
what is the difference in scope for these two variables: @@name and @name?
Explain the importance of yield statement in rails.