DJ Lex
June 13th, 2003, 06:45 PM
Hi Folks!
I'm 99% there but I missing something and have spent to much time trying to get this to work. Hopefully someone can point out my obvious mistake...
The XML document I'm testing with:
http://xml.amazon.com/onca/xml3?t=webservices-20&dev-t=djlex-20&KeywordSearch=Bolshoi&mode=music&type=heavy&page=1&f=xml
I'm trying to target the < ImageUrlSmall >:
function amazonLoad() {
amazonimage = (amazonXML.childNodes[0].childNodes[3].childNodes[6]);
}
When I trace amazonimage I get:
< ImageUrlSmall >http://images.amazon.com/images/P/B00002DF9J.01.THUMBZZZ.jpg< /ImageUrlSmall >
When I add the .nodeValue:
function amazonLoad() {amazonimage = (amazonXML.childNodes[0].childNodes[3].childNodes[6].nodeValue);
}
amazonimage traces as null.
So, how do I get just the value?
Thanks,
Lex
I'm 99% there but I missing something and have spent to much time trying to get this to work. Hopefully someone can point out my obvious mistake...
The XML document I'm testing with:
http://xml.amazon.com/onca/xml3?t=webservices-20&dev-t=djlex-20&KeywordSearch=Bolshoi&mode=music&type=heavy&page=1&f=xml
I'm trying to target the < ImageUrlSmall >:
function amazonLoad() {
amazonimage = (amazonXML.childNodes[0].childNodes[3].childNodes[6]);
}
When I trace amazonimage I get:
< ImageUrlSmall >http://images.amazon.com/images/P/B00002DF9J.01.THUMBZZZ.jpg< /ImageUrlSmall >
When I add the .nodeValue:
function amazonLoad() {amazonimage = (amazonXML.childNodes[0].childNodes[3].childNodes[6].nodeValue);
}
amazonimage traces as null.
So, how do I get just the value?
Thanks,
Lex