Hi, i have a code line like this: (JS)
numOfprocess = parseInt(xmlDoc.getElementsByTagName('process_count')[0].childNodes[0].nodeValue)
for (i = 1; i <= numOfProcess; i++)
{
processStatus = xmlDoc.getElementsByTagName('proccess' + i)[0];
if(processStatus.childNodes[0].nodeValue == false)
{...}
}
everytime i use this syntax there is an error "obejct required" while in Firefox eveything is ok. (the ... are just to explain)
i tried to do some debug like this:
alert(processStatus.childNodes[0].nodeValue)
and the result was 0 so the var is fine. (also worked in ff so..)
the xml:
<process_count>2</process_count>
<Application_Status>
<proccess2>1</proccess2>
</Application_Status>
another thing is that for i=1 it's ok but for i=2 not.
Thank you.