[jQuery] AJAX with post: how to build name value pair as in a post request submitted by form?

[jQuery] AJAX with post: how to build name value pair as in a post request submitted by form?

Hi there,
how can I transmit a post request with the AJAX module that looks
exactly like a post request submitted by a form?
If my field looks like this:
<input type="text" name="foo" value="bar" />
the request send via XMLHttpRequest should look like:
foo=bar
The following fails because of an invalid property id:
$("input[@type='text']").blur(function() {
query = { this.name: this.value };
$("em", this.parentNode).load("some_url", query);
}
and I don't want to do this:
$("input[@type='text']").blur(function() {
query = { field: this.name, validate: this.value };
...
}
Thanks in advance for some help!
Klaus
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/