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 }
};
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
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(
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
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
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
6 matches
Mail list logo