xml - jQuery XHR returning error 0 on select platforms -


I am using code below which works on some CE platforms but always fails others. The message I get back is:

  ajaxError: 0 error http://site.com/morepath/?_=1314965250990   

then success Callback is not like this

This is also in the web browser so I hope that someone can point out a simple error and why something happens on this but there are no other good examples: IE9 has errors But Google Chrome works in

  Data.fetchData = function () {var i = 0; Data.items = new array (); SS.log ("Data.fetchData"); $ .ajax ({url: Define.feedURL, data type: "XML", success: function (data) {$ ("# items"). Blank (); $ (data) .find ("item"). ("Title: first"). Text (), 'image': item.find ("url") .text (), 'subtitle': utility strip chars (item.find ("subtitles"). Text ( ), 'Summary': Utili.Strip Chairs (item.find ("summary"). Text ()), 'video': item.find ("enclosure"). Attr ('url'), 'pubDate': Item.find ("pubDate"). Text (), 'duration': item.find ("duration"). Text ()}; i ++;}); grid.bild ();}}); };    

Since you xml code> Ajax Call, you must parse the response by using $ parseXML before successfully using the callback and proceeding through it. Try it success: function (data) {data = $ .for XML (data); . $ ("# Items") below (); $ (Data) .find ("item"). Each (function () {var items = $ (this); data .iems [i] = {'title': item.find ("title: first"). Text (), 'Image': item.find (" Url "). Text (), 'subtitle': utility.strip chairs (item.find (" subtitles "). Text ()), 'summary': the .trip chars (Item.find (" summary "). (), 'Video': item.find ("enclosure"). Attr ('url'), 'pubDate': item.find ("pubDate"). Text (), 'duration': item.find (" Period "). Text ()}; i ++;}); Grid.build (); }

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -