Posted By

wdso on 02/20/10


Tagged

ajax javascript rails jquery


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

wdso


Make jQuery respond_to :js


 / Published in: JavaScript
 

  1. jQuery.ajaxSetup({
  2. 'beforeSend': function (xhr) {xhr.setRequestHeader("Accept", "text/javascript")}
  3. });

Report this snippet  

You need to login to post a comment.