PDA

View Full Version : Advanced RSS Ticker problem



nn2nn
12-27-2006, 10:29 PM
1) Script Title: Advanced RSS Ticker

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/rsstickerajax/

3) Describe problem: Is there a limit to the size of the file you can call to be displayed by the ticker? On my website I wish to display just the title and date of weather warnings for the entire US RSS feed from the National Weather Service feed. http://www.weather.gov/alerts/us.rss . The ticker will try to initialize and never display the feed. When I use an individual state feed such as http://www.weather.gov/alerts/ne.rss all is well and the ticker works fine. The National warnings list is much larger otherwise the same. Any help appreciated.

Thanks

ddadmin
12-27-2006, 11:42 PM
The likely problem is with LastRSS simply giving up after not being able to fetch the RSS feed within a certain time limit. Do you have an online example of the problem?

nn2nn
12-28-2006, 12:17 AM
If you go to this url, http://14300.net/homescroller , you can see the ticker trying to initialize the NWS feed. If I change the feed url in the bridge.php file to another NWS feed with a shorter list of weather warnings, the ticker works fine.

Thanks

ddadmin
12-28-2006, 01:39 AM
Hmm I don't immediately discern the problem, though to make it easier to debug, can you remove all the other scripts on the page first (including the <body onload=..."> event handler? I ask this because in Firefox, one of the other scripts is generating an error, which may or maynot be causing the subsequent RSS ticker to fail.

nn2nn
12-28-2006, 02:11 AM
Try http://14300.net/tickertest , this shows the ticker working using the "state" url http://www.weather.gov/alerts/ne.rss . When I simply change the /ne.rss to /us.rss in the url in the bridge.php file to get the entire "US" warnings the ticker won't intiliatize. Should I change the bridge.php file back to "us" while you troubleshoot?

Thanks

ddadmin
12-28-2006, 05:55 AM
Yes please change it fetch the RSS feed you're having trouble with.

nn2nn
12-28-2006, 10:24 AM
Done.

ddadmin
12-29-2006, 01:35 AM
Interesting, At this point I would say that the extreme size of the RSS feed is choking something, either LastRSS (the RSS script used to fetch the feed), or causing the server to time out as far as trying to fetch the remote file. If I try to directly fetch the RSS feed using the server side portion of this script, by calling:

http://14300.net/lastrss/bridge.php?id=NWS

in my browser, in Firefox, the entire browser basically freezes for a while before eventually successfully getting it. In IE7 however, it doesn't work at all.

Not quite sure what other advice to dish out except suggest trying the feed on another script on DD, RSS Display Boxes (http://dynamicdrive.com/dynamicindex18/rssdisplaybox/index.htm). This uses a server RSS fetching script on the backend called Simplepie, which is more robust all around. If it works, then we know the issue is with LastRSS.

nn2nn
12-31-2006, 03:34 PM
Using RSS Display Boxes it works fine! Maybe I can come up with a compromise using this rather that the ticker.

Thanks for your help ddadmin. Much appreciated.

ddadmin
01-01-2007, 12:43 AM
Ok, yet another reason to switch to Simplepie for the backend for all the current RSS scripts on DD. I'll be doing that sometime next year (wow, next year!).