Also, you might want to check out this handy tool I wrote: http://beta.devclarity.com/mootools/loadselect/demos/ajax-demo.html
On Mar 1, 11:47 am, Davor Ilic <[email protected]> wrote: > ok cool that looks good, but i found some other > resolution</englisch-deutsch/resolution.html> > > </englisch-deutsch/resolution.html>i will post it after my work^^see ya > > 2010/3/1 Matthew Hazlett <[email protected]> > > > > > Mooshell dosn't support xml requests, so I can't show you :-( > > > Code: > > > xmlStates = new Request({ > > > method: > > 'get', > > > url: > > 'states.xml', > > > onSuccess: > > function (data, xml) { > > > nodes = xml.documentElement.getElementsByTagName("item"); > > > $each(nodes, function(item) { > > > console.log(item.attributes["name"].value); > > > console.log(item.attributes["value"].value); > > > }); > > > }, > > > onFailure: > > function(err) { > > > alert('This demo needs to be on a webserver'); > > > } > > > }).send(); > > > Here is the xml: > > > <States> > > > <item value="AL" name="Alabama" /> > > > <item value="AK" name="Alaska" /> > > > <item value="AZ" name="Arizona" /> > > > <item value="AR" name="Arkansas" /> > > > <item value="CA" name="California" /> > > > ... > > > .... > > > </States> > > > Something like that anyway > > > *From:* [email protected] [mailto: > > [email protected]] *On Behalf Of *Roman Land > > *Sent:* Monday, March 01, 2010 7:34 AM > > *To:* [email protected] > > *Subject:* Re: [Moo] XML-Request > > > I have not got the chance to play around with XML (switched to using JSON a > > while ago and never looked back - so if you have an options I strongly > > advice JSON), but I think you should be either using XPath or the usual > > mootools selectors. > > Maybe this will be useful to you: > > >http://mootools.net/blog/2007/06/11/selectors-on-fire-a-tale-of-pseud... > > > HTH > > > On Mon, Mar 1, 2010 at 2:21 PM, 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 > > > -- > > --- > > "Make everything as simple as possible, but not simpler." > > > - Albert Einstein
