>> $.ajax({
>> ...
>> preprocess: function(xml) {
>> xml.setRequestHeader(...);
>> xml.otherStuff();
>> }
>> });
>
> Exactly my thought! but preprocess is too many bytes! (ha ha )
Let's use "b4" then. :-) Just kidding!
> The form plugin uses 'before' for the preprocess hook.
> For consistency, maybe using that name would be a good idea.
The form plugin's call point is earlier and lets you modify the form before
it's serialized and passed on to ajax(), which would now have a "before"
handler. If there's some way to resolve the call arguments and "this" usage
I think it would be great to extend "before", but it seems tricky.
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/