Difference in handling xml string between Chrome and Firefox



I am having some trouble with parsing an XML string I get from ajax request in the two browsers. In Chrome when I do



totalResults = parseInt($(data).find("totalResults").text());


I get a value, however in Firefox I get 'NaN' when the same piece of code gets executed.


Data is reported to be an 'object' by .type(data) in both browsers. Anyone knows how I can get a value of that in both browsers? Been completely stumped by this for a few days now :(


No comments:

Post a Comment