Quantcast
Channel: Unable to parse atom feed using jQuery - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Unable to parse atom feed using jQuery

$
0
0

I'm using jFeed to parse atom feed and trying to display the title. I had written success and error functions but it's not getting into either success or error function.

Below is my code. Please let me know what's going wrong with below code.

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script> 
<script type="text/javascript" src="javascript/jquery.jfeed.js"></script>

<script type="text/javascript">

$(document).ready(function(){

//read the atom feed

$.getFeed({
    type:"GET",
    url:"http://www.google.co.in/trends/hottrends/atom/hourly",
    success:function(feed)
    {
        alert(feed.title);
    },
    error:function(error)
    {
        alert(error);
    }

});


});

</script>
</head>
<body>
<div id="content"></div>
</body>
</html>

Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>