// via: http://ozmm.org/posts/jquery_and_respond_to.html
jQuery.ajaxSetup({ ‘beforeSend’: function(xhr) {xhr.setRequestHeader(“Accept”, “text/javascript”)} })
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
jQuery.ajaxSetup({ ‘beforeSend’: function(xhr) {xhr.setRequestHeader(“Accept”, “text/javascript”)} })
You need to create an account or log in to post comments to this site.
» Never render the full layout... in ruby rails javascript rubyonrails ajax programming jquery degradation degradable
» ajax_request? method to XHR ... in ruby rails rubyonrails ajax xhr xmlhttprequest
» jQuery namespaced event bind... in javascript dom ajax js jquery events scraping scrape
» create a rails app from rail... in ruby rails shell svn bash subversion rubyonrails
» Extend FileColumn to work wi... in ruby rails rubyonrails
» Extend FileColumn to work wi... in ruby rails rubyonrails
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails