Results 1 to 4 of 4

Thread: Multiple Instances of rsspausescroller not working properly

  1. #1
    Join Date
    Aug 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Multiple Instances of rsspausescroller not working properly

    Hey guys. I'm having a bit of trouble with the rsspausescroller (and more specifically, in running multiple instances of it).

    A link to view what I'm talking about: http://scratch.mqseries.net/phpBB2/index.php

    The first RSS feed seems to load fine, but the second one always gets stuck on 'Initializing RSS scroller...'

    The code that I'm using (including the HTML tables to display them as they are) is as follows:

    Code:
    <table width="100%" border="0">
      <tr>
        <td width="50%">
    
    <script type="text/javascript" src="rsspausescroller.js">
    
    /***********************************************
    * RSS Pausing Scroller- © Dynamic Drive (http://www.dynamicdrive.com)
    * This notice MUST stay intact for legal use
    * Visit http://www.dynamicdrive.com/dynamicindex17/rsspausescroller/ for source code and documentation
    ***********************************************/
    
    </script>
    
    <span class="news">RSS Feed - WebSphere MQ Support</span>
    
    <script type="text/javascript">
    
    //new rsspausescroller(RSS_id, divId, divClass, delay, linktarget, optionalswitch)
    //1) RSS_id: "Array key of RSS feed in scrollerbridge.php script"
    //2) divId: "ID of DIV to display ticker in. DIV is dynamically created"
    //3) divClass: "Class name of this ticker, for styling purposes"
    //4) delay: delay between message change, in milliseconds
    //5) linktarget: Target of links inside RSS feed. Set to "" for current page.
    //6) optionalswitch: "optional arbitrary" string to create additional logic for formatrssmessage() to use.
    //   By default, optionalswitch supports "date", or "date+description" to also show these parts of a RSS feed.
    
    new rsspausescroller("ibm1", "pscroller1", "mainmenu2", 4500, "", "date")
    
    </script></td>
    
    <td width='50%'><span class="news">RSS Feed - Message Broker Support</span>
    
    <script type="text/javascript">
    
    new rsspausescroller("ibm2", "pscroller1", "mainmenu2", 4500, "", "date")
    
    </script></td></tr></table>
    Any help would be greatly appreciated!

    Cheers.

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

    Default

    The 2nd parameter passed into new rsspausescroller() must be unique for each instance on your page. So in your case, you'd need to change:

    Code:
    new rsspausescroller("ibm2", "pscroller1", "mainmenu2", 4500, "", "date")
    to something like:

    Code:
    new rsspausescroller("ibm2", "pscroller2", "mainmenu2", 4500, "", "date")
    DD Admin

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    Saberwing (08-25-2008)

  4. #3
    Join Date
    Aug 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks a lot for your help--it sorted the issue!
    Shahin

  5. #4
    Join Date
    Aug 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Just want to verify that with the rsspausescroller script, you can have more than two instances.....

    I am trying to get it to work on a library website I am working on.......

    I have one instance of rsspause scroller on a homepage, and then I use two on a library branch page.....

    I cant seem to get all three to work consistently, although I do have different instances of the 2nd parameter....pscroller1, pscroller2, and pscroller3

    Right now cant send you a link, it is on a test site, but if you need to see it, I can probably make it happen....thanks for any help....

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
  •