[jQuery] Custom headers to ajax calls

[jQuery] Custom headers to ajax calls

Hi,
I'm just working on a project which is making ajax calls to a .NET
backend using the AjaxPro extension. However, since I'm already using
jQuery on the front end I thought I'd avoid using their extra frontend
code and just use jQuery.
The problem is that their .NET backend expects a custom header
('X-AjaxPro-Method' with the name of the server side method you want to
call) which jQuery doesn't seem to support natively.
So I made the attached little patch (against jquery-1.0.3.js [Rev: 501])
which just allows you to pass extra headers to the ajax call. It seems
to be working for me - please consider it for inclusion into jQuery,
Cheers,
Kelvin :)
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/