How about grabbing the response text in one variable, then splitting that variable up into bits and then putting those bits into their respective text box.
PHP Code:
var someString = pageRequest.responseText;
...
var temp = someString.split(',');
text1.value = temp[0];
text2.value = temp[1];
text3.value = temp[2];
text4.value = temp[3];
The response text would've been something like:
thing1,thing2,thing3,thing4
Assuming you're using PHP you could use the implode function to add those strings together.
http://php.net/implode <-- Implode reference
Sorry if I'm way off, I've been using PHP and Javascript for some time but I haven't been using AJAX very long at all.
Bookmarks