Something
public text v1 · immutablevar 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?