I want to extract data using jQuery XML parsing tools, but it doesn't work and seems to block when it comes to ".find('...').each(..." -


This is my code:

I followed it which I suggested to do on a web site and The script finished with me is not working properly! And even firebug does not show any errors. Data type: "XML", complete:

Function (data, position) {var products = data. ResponseXML; $ (product) .frame ('product'). (Function () {var id = $ (this) .attr ('Id'); var name = $ (This) .find ('name'). Text (); var value = $ (this) .find ('value'). Text (); alert ("id:" + id + "; name:" + Name + "; value:" + value);});}});});

Here is the XML file:

I have also added the same thing as their example:

Every time it reaches "$ (xml)", then everything is being blocked .Fund ('...'). Each (function () {}); "And I can not seem to be able to find a way to solve. Any help will be appreciated. Thanks guys.

  var products = data.responseXML;  

jQuery already responds to XML:

  var ct = xhr .getResponseHeader ("content-type") || "", Xml = type === "xml" ||!! Type & amp; amp; amp; ct.indexOf ("xml")> = 0, data = Xml? Xhr.responseXML: xhr.responseText;  

Try to control the code directly .


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -