$each() won't work for node lists in IE (I found out). Have to use the ugly
standard for loop.
data = xml.documentElement.getElementsByTagName("item");
for (var counter=0; counter <= data.length - 1; counter++)
var item = data[counter];
console.log(item.getAttribute("attribute 1"));
}
This is tested and works in IE, sorry it's not very mooish :-)
you can se this work here:
http://beta.devclarity.com/mootools/loadselect/demos/ajax-demo.html
From: [email protected]
[mailto:[email protected]] On Behalf Of Davor Ilic
Sent: Wednesday, March 03, 2010 5:44 AM
To: [email protected]
Subject: Re: [Moo] Re: XML-Request
hi all,
i tried some of them and nothing works.
@Matthew Hazlett
i also tried your code. but it doesn´t work in all browsers.
have someone an other xml-parser with mootools?
2010/3/2 Davor Ilic <[email protected]>
hmmm i found this and i wrote an script and like it until i test it in IE8
and it does not work.
<http://mootools.net/shell/UAkDk/3/> http://mootools.net/shell/UAkDk/3/
i will test some other scripts how post it.
write me plz if you find more.
thanks
2010/3/1 Jeff Allen <[email protected]>
If you take a look at this web application:
http://jdallen.net/MooTools/VideoPoker/VideoPoker.html
source at:
http://jdallen.net/MooTools/VideoPoker/VideoPoker.zip
You'll see a working example of loading and parsing a xml document
( the cards )...
-Jeff
On Mar 1, 7:21 am, Davor Ilic <[email protected]> wrote:
> I can´t find in mootools doc how i can get the nodes from xml-file?
>
> can sombody tell me how to do this with mootools?
>
> thanks