C
corydee
Hi All,
I am having some newbie problems with the XML DOM. The XML is returned
in this format:
<weekly_schedule>
<hours>
<day>Sun</day>
<open>1PM</open>
<close>5PM</close>
</hours>
<hours>
<day>Mon</day>
<open>9:30AM</open>
<close>8:30PM</close>
</hours>
</weekly_schedule>
I have a XMLHTTPRequest object called http. Using the below line, x is
intended to be in a loop, but even hard coding a zero value doesn't
help. FF always returns undefined, while IE will return the day of the
week as expected.
http.responseXML.getElementsByTagName("hours").
[x].getElementsByTagName("day")[0].text
Any ideas why this line is messing things up?
Thanks,
Cory
I am having some newbie problems with the XML DOM. The XML is returned
in this format:
<weekly_schedule>
<hours>
<day>Sun</day>
<open>1PM</open>
<close>5PM</close>
</hours>
<hours>
<day>Mon</day>
<open>9:30AM</open>
<close>8:30PM</close>
</hours>
</weekly_schedule>
I have a XMLHTTPRequest object called http. Using the below line, x is
intended to be in a loop, but even hard coding a zero value doesn't
help. FF always returns undefined, while IE will return the day of the
week as expected.
http.responseXML.getElementsByTagName("hours").
[x].getElementsByTagName("day")[0].text
Any ideas why this line is messing things up?
Thanks,
Cory