Results 1 to 5 of 5

Thread: RSS ticker (Ajax) stopped working.

  1. #1
    Join Date
    Mar 2011
    Location
    In a house with people who try to look after me.
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default RSS ticker (Ajax) stopped working.

    1) Script Title:
    RSS ticker (Ajax)

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

    3) Describe problem:
    The CNN part of the script just stopped working. I don't understand why, and would be grateful, if someone from DD would fix it to work again.

    Thank you, for these scripts.

    NeedsHelp

  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

    Try out this updated version of the script:

    rssticker.js
    Last edited by jscheuer1; 05-03-2016 at 01:55 AM.
    - John
    ________________________

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

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

    Default

    It seems the problem is specific to the CNN feed in that not every one of their RSS entries carries a description, when the script simply expects this to always be the case. You can try the below modified .js file that checks whether an entry has a description before attempting to access it. I've also updated the official script's .js file with this modification as well.
    Attached Files Attached Files
    DD Admin

  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

    Yes, that's what I determined. I also decided that any feed might have any given expected field missing, so the code I wrote takes that into account. I'm also updating for other improvements (reinstate fade-in for modern browsers, add more options and better error reporting) and to use simplepie instead of LastRSS to parse the feeds. In my experience simplepie is better with the non-English/non-standard characters used in many feeds.

    Also, your version results in "undefined" appearing as the description for missing descriptions, at least in some browsers. Mine tests for each type of info, setting the array entry value to '' (empty as opposed to leaving it undefined), if no information available for that field in that item.

    Hmm, simplepie has been updated and no longer works as before, newer versions of PHP barf on the old version. LastRSS - outdated as it might be, may be the best current choice for this script as it works, mostly. Or not, all I had to do was suppress a warning and it (old simplepie) was fine, so far. I know it (the old simplepie) handles non-standard characters better. Oh, and I've just tried - the new simplepie is fairly easy to use (takes care of the problems), though is not so lightweight, nor is it as convenient to install. We would have to make our own install (include it in the zip like we have before anyway).
    Last edited by jscheuer1; 05-03-2016 at 10:00 PM. Reason: finding things out
    - John
    ________________________

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

  5. #5
    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

    Here's my latest demo:

    http://john.dynamicdrive.com/rssticker/demo.htm

    It's using the latest full release of simplepie, reinstates and smooths out the fade option for modern browsers, has some other options as well. Takes care of the missing description issue and will react well to other missing fields, all without showing "undefined" for any that are missing. Option also to exclude items with missing fields. Option to exclude selected tags from the description field. More. I'm going to fully document this pretty soon.

    Its rssticker.js file can still be used with LastRSS or earlier versions of simplepie if desired, though - unless you have an older version of PHP on your server, and are limited to using one of those, I would not recommend that.
    Last edited by jscheuer1; 05-04-2016 at 12:14 AM.
    - John
    ________________________

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

Similar Threads

  1. The AJAX ticker script on DD stopped working! Please fix.
    By HelpPlease in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 04-15-2016, 05:29 AM
  2. Ajax Tabs plugin stopped working
    By itucakov in forum Dynamic Drive scripts help
    Replies: 5
    Last Post: 08-16-2013, 03:02 AM
  3. Ajax Ticker refetch text file not working
    By griesmnr in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 03-04-2010, 10:41 PM
  4. Ajax XML Ticker not working in IE7
    By thehappyappy in forum Dynamic Drive scripts help
    Replies: 17
    Last Post: 12-31-2007, 04:58 AM
  5. AJAX XML Ticker Not Working in Safari
    By kennn in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 05-11-2006, 04:42 AM

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
  •