posted 15 years ago
I'm trying to have a looping XMLHttpRequest put in place. First time in the normal XMLHttpRequest is used and a perl script is called for looking up values. The script passes values back in increments of 20 (20 users = first names, last names, etc..,). I keep track of the next number of process and try and recall the XMLHttpRequest object but something is going wrong somewhere. I have an alert of the responseText and there is a tag in there that I'm trying to check (using getElementsByTagName). The first time through I see my tag (<NextPos>0</NextPos>), the second time I see it (<NextPos>21</NextPos>). I then iterate through the values in the lookup table. Anyone happen to know what could possibly be the problem? Below is the code. The line "dObj.getElementsByTagName("NextItm").length" is where it's giving me a count of 0 but a couple of lines before that (alert) it shows me that the XML does have the tag <NextItm> in it. Any help would be greatly appreciated.