The following function generates an error at the 'for' ststement. The error is Expected';'
Code:
function processReqChange(){
if(req.readyState == 4) {
if(req.status == 200) {
//alert("About to display");
var newValue = req.responseText;
if(newValue == "None"){
alert("The Drawing Location List could not be constructed!. Are you sure the Job Number is correct?");
}
var newValuearray = newValue.split(',');
for (int i=0; i<newValuearray.length; i++){
alert(newValuearray[10]);
}
document.testform.dllistbox.value = newValue;
}else {
alert("There was a problem retrieving the XML data:\n" +
req.statusText);
}
}
}