[jQuery] Ajax and callbacks

[jQuery] Ajax and callbacks

<html>
<body>
Hi folks,
I'm much further down the slope then all of you, so apologies for the
simple question, but I'm having problems finding out how to retrieve
header data (not sure if that's the correct term) coming from my server
after an AJAX call.
From a variety of sources, my current code looks like this....
<tt>$.fn.ajaxSubmit = function(e) {this.submit(function(){ var params =
{}; $(this) .find("input[@checked], input[@type='text'],
input[@type='hidden'], input[@type='password'], option[@selected],
textarea") .filter(":enabled") .each(function() { params[
this.name || this.id || this.parentNode.name || this.parentNode.id ] =
this.value; }); $.post(this.getAttribute("action"), params,
function(txt){$("div#editqzresult2").html("<h2>"+txt+"</h2>")
}); return false; });}
$(document).ready(function(){ $("#editqzresult").ajaxSubmit();
});
</tt>I can get the ".responseText"-type data (txt in the above
code) but I don't know how to retrieve headers (in my "old
style" js I retrieved them via
".getResponseHeader").
Through Firebug, I know that the headers are being returned, but I cannot
find any references on the web/this list that shows how to retrieve these
through jQuery.
Pointers?
Thanks,
Bruce</body>
</html>
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/