Abdur-Rahman Advany schrieb:
> Hi,
>
> Is there a way I can change the accept header of ajax requests? as rails 
> uses the accept header to load rjs (and it would be nice not to prepend 
> .rjs on all requests).
>
> maybe someone already figure out a way to use jquery ajax and rails to 
> replace rjs (with minus_r)?
>   
With the latest revision of jQuery (not yet released, but available via 
SVN), you could do something like this:
$.ajax({
    ...,
    before: function(xml) {
       xml.setRequestHeader("Accept", "whatever-you-need-here");
    }
});

Would that do the trick?

-- 
Jörn Zaefferer

http://bassistance.de


_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to