Return to Snippet

Revision: 11900
at February 23, 2009 08:06 by neal_grosskopf


Initial Code
<%
function GetFeedStats(rssFile)

Set objXML = Server.CreateObject("Microsoft.XMLDOM")
objXML.Async = False
objXML.SetProperty "ServerHTTPRequest", True
objXML.ResolveExternals = false
objXML.ValidateOnParse = false
objXML.preserveWhiteSpace = false
'objXML.Load("http://api.feedburner.com/awareness/1.0/GetFeedData?uri="&request.QueryString("url"))
objXML.Load("https://feedburner.google.com/api/awareness/1.0/GetFeedData?uri="&request.QueryString("url"))

Set objRoot = objXML.documentElement

Set objItems = objRoot.getElementsByTagName("feed")
For Each objItem in objItems
temp = objItem.selectSingleNode("entry").getAttribute("circulation")
Next

Set objRoot = Nothing
Set objItems = Nothing

GetFeedStats = temp

end function
%>

<script type="text/javascript">
$(document).ready(function(){

$.get("feedburner.asp?url=ng-tech", function(data){
$("#feedburner").text(data);
});

});
</script>

<span id="feedburner"></span>

Initial URL
http://www.nealgrosskopf.com/tech/thread.asp?pid=36

Initial Description
Learn how to display the total number of Feedburner subscribers next to your 'subscribe' icon on your web site.

Initial Title
How To Get Total Feedburner Subscribers With JQuery and ASP

Initial Tags
jquery, ASP

Initial Language
jQuery