Posted on 2006-11-24
However, I want it to return several things, and then change multiple parts of the page accordingly.
How can I do this?
I don't want to start slicing up the returned code wiuth string/search functions - each part of the response has a variable length.
Here is the function which xmlHttp.onreadystatechange triggers, hopefully demonstrating what I want it to do:
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
document.getElementById('misc_html_tag').value = [one snippet of returnedInfo];
document.getElementById('some_other_tag').value = [other snippet of returnedInfo];
numVar = parseInt([another snippet of returnedInfo]);
numVar2 = parseInt([yet another snippet of returnedInfo]);
Any other suggestions for methods for getting several values out of the response?