Answer by Jay Are for jQuery.get(): Trying to retrieve feed, but XML tags are...
How about trying something like this (It worked for me)...Create a PHP file (get_xml.php) with the following:$xml = file_get_contents($_GET['url']);header("Content-Type: text/xml"); echo $xml;Then use...
View ArticleAnswer by Gabriele Petrioli for jQuery.get(): Trying to retrieve feed, but...
If you append it, it works.$(feed).find('item:first > *').appendTo('#testbox');
View ArticleAnswer by Anthony Accioly for jQuery.get(): Trying to retrieve feed, but XML...
Hum... Take a look if your content can't just be wrapped with <![CDATA[ and copied.See this answer (I know, CDATA abuse and everything, but OP don't want to parse the XML at all, just append it...
View ArticleAnswer by Jay Are for jQuery.get(): Trying to retrieve feed, but XML tags are...
Try returning the node, and not the text...$.get('http://url.to/feed', function(feed) { data = $(feed).find('item:first'); $('#testbox').html(data);}, 'xml');
View ArticlejQuery.get(): Trying to retrieve feed, but XML tags are lost
I'm using jQuery to automatically fetch the most recent post on a blog. jQuery.get() goes to the blog's RSS feed and returns the most recent post:Here's what I'm using:$.get('http://url.to/feed',...
View Article