Results 1 to 2 of 2

Thread: gAjax RSS Pausing Scroller issue

  1. #1
    Join Date
    Oct 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default gAjax RSS Pausing Scroller issue

    gAjax RSS Pausing Scroller

    http://www.dynamicdrive.com/dynamici...sescroller.htm

    We I add 1 instance of the scroller to the page everything works okay.
    When I add a second instance of the scroller (exactly the same code and RSS feed) it only displays one of the scrollers and the other one one hangs at "Initialising RSS Scroller..."

    Any pointers appreciated as to how to add multiple scrollers to a page.
    Thanks

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

    Default

    Did you remember to get each instance a unique variable name when initialing them? For example:

    Code:
    var cssfeed=new gfeedpausescroller("example1", "example1class", 2000, "_new")
    cssfeed.addFeed("CSS Drive", "http://www.cssdrive.com/index.php/news/rss_2.0/") //Specify "label" plus URL to RSS feed
    cssfeed.displayoptions("date") //show the specified additional fields
    cssfeed.setentrycontainer("div") //Wrap each entry with a DIV tag
    cssfeed.filterfeed(10, "date") //Show 10 entries, sort by date
    cssfeed.entries_per_page(1)
    cssfeed.init()
    
    var cssfeed2=new gfeedpausescroller("example2", "example1class", 2000, "_new")
    cssfeed2.addFeed("CSS Drive", "http://www.cssdrive.com/index.php/news/rss_2.0/") //Specify "label" plus URL to RSS feed
    cssfeed2.displayoptions("date") //show the specified additional fields
    cssfeed2.setentrycontainer("div") //Wrap each entry with a DIV tag
    cssfeed2.filterfeed(10, "date") //Show 10 entries, sort by date
    cssfeed2.entries_per_page(1)
    cssfeed2.init()
    DD Admin

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
  •