ajax_request? method to XHR detection


Category:
Scripts
Ruby
Requirements:
Seller:
Price:
-
System:
Rating:
4.8
License:

Description - ajax_request? method to XHR detection



A oneline helper I put in all of my apps. Looks for HTTP headers that signal you`re being called via an XmlHttpRequest. I use it for instant degradable Ajax by rendering a Template if it`s as usual but just rendering a partial if they just want that part!



More in Ruby-ajax_request? method to XHR detection

Request Request Method Ajax Request Method