Results 1 to 2 of 2

Thread: Two RSS scriptboxes on same page not working

  1. #1
    Join Date
    Jan 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Red face Two RSS scriptboxes on same page not working

    1) Script Title: RSS Display Boxes

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ybox/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.set_items_shown(6)
    showbbc.set_template("titlesdates")
    showbbc.start() //Required: start script
    </script>

    box 2:
    <script type="text/javascript">
    var showdigg=new rssdisplaybox("digg", "diggid", "someclass")
    showdigg.set_items_shown(5)
    showdigg.start() //Required: start script
    </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
    $rsslist=array(
    "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.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Everything looks right. Please post a link to the page on your site that contains the problematic script so we can check it out.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •