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
Explain how Rails implements Ajax?
Explain the various ide's of ruby on rails.
what is ORM (Object-Relationship-Model) in Rails?
Explain what is the role of the subdirectories app/controllers and app/helpers in rails?
Explain the importance of yield statement in rails.
how you can create a controller for subject?
what is Cross-Site Request Forgery (CSRF) and how Rails is protected against it?
Explain rails migration.
What are float, dig and max?
How can you protect filter methods in rails?
What are the steps involved in writing and setting up an application in ruby on rails?
Explain unobtrusive javascript in rails.
what is the difference between the Observers and Callbacks in Ruby on Rails?
What is a ruby singleton method ?
What I have to do to view my project always on browser?