PDA

View Full Version : gAjax RSS Feeds Displayer - can't display multiple feeds



nsbrown
06-06-2008, 08:40 AM
1) Script Title:
gAjax RSS Feeds Displayer
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex18/gajaxrssdisplayer.htm
3) Describe problem:

Hey

I am having trouble with diplaying multiple feeds on one page, it come up with a google API error, I've tried changing the variable names so that they are different but it still comes up with the same error.

Any ideas??

<link href="css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAACzRiAL-tq4wnboSNjscJQRRKWUcb9x7kgwPs8TU3YLO4DpxL6hTPiDFRpWLdI5ntwOSfkyO61V8sDQ">

<script type="text/javascript" src="gfeedfetcher.js"></script>



</head>

<body>
<div id="wrapper">
<div id="top"></div>
<div id="header"></div>
<div id="top_nav"></div>
<div id="page_container">
<div id="page">
<div id="top_left_container">
<div id="box" class="a"></div>
<div id="box" class="b">
<h3 class="white">TAL News</h3>
<script type="text/javascript">

var talfeed=new gfeedfetcher("tal", "talclass", "")
talfeed.addFeed("CSS Drive", "http://intranet.parklands.co.za/tal/index/rss.php?number=5") //Specify "label" plus URL to RSS feed

talfeed.setentrycontainer("li") //Display each entry as a list (li element)
talfeed.filterfeed(4, "title") //Show 10 entries, sort by date
talfeed.init() //Always call this last

</script>

</div>
<div id="box" class="c"></div>
</div>
<div id="box" class="d">
<h3 class="darkorange">Recent Podcasts</h3>


</div>
<div id="box" class="e">
<h3 class="darkblue">Laptop Program</h3>

</div>
<div id="box" class="f">
<h3 class="darkbrown">IEB News</h3>

</div>
<div id="box" class="g">
<h3 class="darkgreen">The environment</h3>


<script type="text/javascript">

var greenfeed=new gfeedfetcher("example1", "example1class", "")
greenfeed.addFeed("CSS Drive", "http://feeds.feedburner.com/GreenpeaceNews") //Specify "label" plus URL to RSS feed

greenfeed.setentrycontainer("li") //Display each entry as a list (li element)
greenfeed.filterfeed(4, "title") //Show 10 entries, sort by date
greenfeed.init() //Always call this last

</script>

</div>
<div id="box" class="h"><img src="images/lsoh_advert.jpg" alt="Little Shop of Horrors" /></div>
</div></div>
<div id="footer"></div>

</div>

</body>
</html>