wrong syntax in IE? - ajax & Js

LellPhelt

New Member
i have a code line like this: (JS)\[code\]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 =http://stackoverflow.com/questions/3656950/= false){...}}\[/code\]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:\[code\]alert(processStatus.childNodes[0].nodeValue) \[/code\]and the result was 0 so the var is fine. (also worked in ff so..)the xml:\[code\] <process_count>2</process_count> <Application_Status> <proccess2>1</proccess2> </Application_Status>\[/code\]another thing is that for i=1 it's ok but for i=2 not.Thank you.
 
Back
Top