[jQuery] New AJAX plugin - XPath on result?
Sure, I follow you there. But why does the server need to send all that
extra stuff?
In your form example, just have the server send this:
<form method="post" action="?">
<input type="text" name="name" value="John Doe" />
<input type="submit" name="save" value="Save" />
</form>
And then this will work:
$("p").load("/test/ajax-test.html");
There's even a name for this technique:
http://microformats.org/wiki/rest/ahah
-Mike