Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Why do we use request.xhr? in rails

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


Please Help Members By Posting Answers For Below Questions

what is the use of super function in ruby on rails?

939


What is object-relationship-model (orm)?

931


what is the difference between new, save and create?

1035


What I have to do to view my project always on browser?

884


Explain the advantages of ruby on rails?

841


What is the purpose of require_relative in ruby?

879


Explain me the log that has to be seen to report errors in ruby rails?

750


what are benefits of using active record as opposed to raw sql queries?

946


What are the steps involved in writing and setting up an application in ruby on rails?

819


how you can create a controller for subject?

961


Explain dry in rails?

856


What is the main function of helpers used in ruby on rails?

865


What are the various components of rail?

951


Explain how does rails implement ajax?

972


Where does the start_tabnav gets informations for tabs rendering in ruby rail?

845