[jQuery] Re: Using jQuery to parse XML

2009-03-18 Thread Matt
Here's the code where it gets called: vorticityStrengthMenu.onchange = function () { var bifData; var bifOptions = { lines: { show: true}, points: { show: true }, grid: { hoverable: true, clickable: true } };

[jQuery] Re: Using jQuery to parse XML

2009-03-18 Thread mark.schulthe...@gmail.com
Post the portion of code where you DO call this since, as you say it seems to NOT have been called, or, try putting an alert just before that call as you do here...for the poor person's debug effort :) On Mar 18, 2:49 am, Matt wrote: > Hi all, > I've spent a long time trying to figure out why my

[jQuery] Re: Using jQuery to Parse XML in AIR

2009-02-20 Thread s.ross
in both the callback and complete handlers, data.responseXML => [object Document] The question is how to turn this into a jQuery object that can be traversed. I'm still not grokking that. What I'm looking for is something like: xmlDoc = $(data.responseXML) xmlDoc.find('category').each(function(

[jQuery] Re: Using jQuery to Parse XML in AIR

2009-02-20 Thread ricardobeat
It seems you have a misunderstanding here. $(data).text() will get you the innerText/textContent of all the nodes in your XML, it's not converting the whole response back to text. Are you sending the response as 'text/xml' from the server? add complete: function(xhr){ console.log(xhr); } an

[jQuery] Re: Using jQuery to Parse XML in AIR

2009-02-19 Thread s.ross
Thanks for the reply. Here are a few results from the callback function: data => [object Document] data.find('category') => TypeError: Value undefined does not allow function calls. $(data).find('category') => [object Object] $(data).find('category').length => 0 $(data).text() => [text of whole

[jQuery] Re: Using jQuery to Parse XML in AIR

2009-02-19 Thread mkmanning
I suspect it's the dance you're having to do. Quickly testing in a browser, If you use xmlObjectTree = $(data) then you can iterate through the animal tags. Doing the dance in a browser yields an unrecognized expression syntax exception. How did you come to use $($(data).text()); and what happen