View Full Version : Two RSS scriptboxes on same page not working

01-09-2007, 05:35 PM
1) Script Title: RSS Display Boxes

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex18/rssdisplaybox/index.htm

3) Describe problem: I can not get more than one box to display in my SMF portal front page.

I am inserting the script code in scriptboxes. When I ask for just one rss box to be displayed on the page, it loads no problem. When I ask for a second box to be displayed, the first one loads and then seems to reload the second feed.

I have set the variable names to be different. I even tried the
<body onload="showbbc.start();showdigg.start()"> in the index.php file that creates the front page.

My script for the 2 boxes is as follows:

box 1:
<script type="text/javascript">
var showbbc=new rssdisplaybox("ign", "bbcid", "someclass")
showbbc.start() //Required: start script

box 2:
<script type="text/javascript">
var showdigg=new rssdisplaybox("digg", "diggid", "someclass")
showdigg.start() //Required: start script

I use the standard css file rssdisplaybox.css
I did NOT set up different CSS ids.

my main.php includes:

//Specify list of RSS URLs
"bbc" => "http://newsrss.bbc.co.uk/rss/newsonline_uk_edition/front_page/rss.xml",
"digg" => "http://www.1up.com/rss?p=PS3&x=1",
"ign" => "http://scripts.ign.com/rss/ign.PlayStation3.2.0.xml",
"ddd" => "http://digg.com/rss_search?search=ps3&area=all&type=all&age=7&section=news",
"dynamicdrive" => "http://www.dynamicdrive.com/export.php?type=new" //no trailing comma after last RSS URL!!

Any reason why these two scriptboxes are clashing?
Many thanks for any help.

01-09-2007, 10:18 PM
Everything looks right. Please post a link to the page on your site that contains the problematic script so we can check it out.