i have code on site:
$.ajax({ type: "get", url: 'http://www.rp-online.de/cmlink/top-news-1.2513701', cache : false, datatype: "xml", success: function(xml) { $(xml).find('title').text(); console.log($(xml).text()); var = $(xml).find('description').eq(1).text(); $('#av').append(as); }, error:function (xhr, textstatus, thrownerror){ console.log(textstatus); $("#result").html(textstatus); } }); for now, code works, , used data website ( rss feed ).
everything looks on desktop, ios, not on android. when turn on chrome , mobile emulation, see in console: parseerror. know solution ? thank you.
your jquery code works fine. tested on computer using android emulator both native , chrome browser , here have
maybe have problem in html. check if not replicating "ids"
<html> <head> <title></title> <script src="jquery.js"></script> <script> $.ajax({ type: "get", url: 'http://www.rp-online.de/cmlink/top-news-1.2513701', cache : false, datatype: "xml", success: function(xml) { $(xml).find('title').text(); console.log($(xml).text()); var = $(xml).find('description').eq(1).text(); $('#av').append(as); }, error:function (xhr, textstatus, thrownerror){ console.log(textstatus); $("#result").html(textstatus); } }); </script> </head> <body> <div id="result"></div> <div id="av"></div> </body> </html>
Comments
Post a Comment