Guarda come è semplice con prototype.js
http://www.fabryprog.it/from_sergiop...totype.js.html

codice:
new Ajax.Request(url_action, {onComplete:showResponse} );
function showResponse(originalRequest)
{
	var t = originalRequest.responseText;
	var v = t.split("|");
	$("textarea1").value = t;

	if(v.length != undefined && v.length == 2)
	{
		$("div1").innerHTML = v[0];
		$("text1").value = v[1];
	}

}