/ Published in: jQuery
Learn how to display the total number of Feedburner subscribers next to your 'subscribe' icon on your web site.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<% 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>
URL: http://www.nealgrosskopf.com/tech/thread.asp?pid=36