Results 1 to 5 of 5

Thread: rsstickerajax

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

    Default rsstickerajax

    1) Script Title: RSS Ticker Ajax

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

    3) Describe problem: Trying to use it in VBulletin at http://start.mobilebeat.com/forumdisplay.php?f=21 where you see Mobile Beat News - that

    Code:
    <script type="text/javascript">
    //rssticker_ajax(RSS_id, cachetime, divId, divClass, delay, optionalswitch)
    //1) RSS_id: "Array key of RSS feed in PHP script"
    //2) cachetime: Time to cache the feed in minutes (0 for no cache)
    //3) divId: "ID of DIV to display ticker in. DIV dynamically created"
    //4) divClass: "Class name of this ticker, for styling purposes"
    //5) delay: delay between message change, in milliseconds
    //6) optionalswitch: "optional arbitrary" string to create additional logic in call back function
    
    document.write("Mobile Beat News")
    new rssticker_ajax("MB", 600, "cnnbox", "cnnclass", 3000, "date")
    
    </script>
    in in the header

    Code:
    <script src="rssticker.js" type="text/javascript">
    //credit notice here 
    </script>
    is where I want it to display - right by the left of the 6 square ads starting with PCDJ

    http://start.mobilebeat.com/rssticker.js is in place as is the last rss stuff at http://start.mobilebeat.com/lastrss/

    Help,
    Ryan

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    The main problem (there could be others, but we won't know until we fix this) is that you have the two scripts placed in the reverse locations of where the belong. The one you have in the head belongs in the body at the spot in your code where you want the ticker to show up. The one you've placed in the body belongs in the head.

    For an example of how these two scripts should be arranged on a page, view the source code of the demo.htm:

    http://www.dynamicdrive.com/dynamici...rajax/demo.htm
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Oct 2009
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    OK got it

    Now I just have a Date issue - http://start.mobilebeat.com/showthread.php?t=48794

    Ideas?

    Ryan

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    No not really. Did you edit anything in any of the files as regards the date or date format?

    The reason I ask is that this date is taken directly from the feed and then formatted via PHP, then output as text via javascript. So either it is missing in the feed (a very good chance because the date showing is so close to 0hr in code time which is midnight 1/1/70 that it's probably just that (0) minus a time zone correction), or not expressed in the standard way in the feed, or you've done some editing as I was speculating, or maybe something else.

    Where's the feed generated? Maybe 'they' aren't including the publication date info.

    You could always set the display of that part to none or its visibility to hidden. That would at least eliminate the erroneous info.

    But my expertise lies mainly with javascript, so you might have better luck, now that you have this at least working, to start a new thread explicitly about this new issue.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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

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
  •