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

Answers were Sorted based on User's Feedback



Why do we use request.xhr? in rails..

Answer / surekha matte

request.xhr? indicates the controller has
received an ajax request. It returns true or false

Is This Answer Correct ?    71 Yes 8 No

Why do we use request.xhr? in rails..

Answer / 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

More Ruby on Rails Interview Questions

how many types of callbacks available in ror?

0 Answers  


iam new to the ruby on rails. suggest me some pdf and online books for ruby and rails

1 Answers  


What is cross-site request forgery (csrf)? How is rails protected against it?

0 Answers  


Mention the differences between the observers and callbacks in ruby on rails.

0 Answers  


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

0 Answers  


What is the directory structure of rails?

0 Answers  


Explain bundler in rails.

0 Answers  


What do you understand by rails migration and what it can do?

0 Answers  


What is a webrick web server?

0 Answers  


difference between form_for and form_tag

2 Answers  


What is unit testing (in classical terms)? What is the primary technique when writing a test ?

0 Answers  


What is the difference between render and redirect?

0 Answers  


Categories