All pastes #420821 Raw Edit

Something

public text v1 · immutable
·published 2007-04-02 12:49 UTC
rendered paste body
var i=0;
while((item=object(i))!=null)
{
	if (item.value==1)
	{
		xmlReq = new XMLHttpRequest();
		xmlReq.open("POST", "http://www.abc.com//"+item.name);
		xmlReq.setRequestHeader("Content-Type", "text/xml; charset=utf-8");
		xmlReq.onreadystatechange = retrievedData;
		xmlReq.send("blahblah")
	}
	i++;
}
//1. I have no idea how to handle this retrieveData...
//2. The complete loop looks ugly, each time a new XHR opject?