hikerguy1900
10-29-2006, 05:36 PM
1) Script Title:
Advanced RSS Ticker (Ajax invocation)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/rsstickerajax/index.htm
3) Describe problem:
Why is a page reload required to update the RSS feed cache?
It could not be easier to install this script, just unzip and it works. Thank you :)
This is the first time I've ever looked into the detail of a AJAX script and I'm confused by how the cache is managed. I expected that the news ticker would get new news without the user having to reload the page. However, from what I can tell the only time the RSS cache file is updated, or read, is when the page with the java script is loaded. After the initial page load it seems that the java script endlessly cycles through the content loaded when the page was requested. So, if a user loaded the page on Friday, left his browser open over the weekend, on Monday the page would be cycling though the same items even if there was new news over the weekend.
If my understanding is correct how would one modify the java script to periodically check the cache to see if it needs to be updated and potentially get new content?
If my understanding is not correct then when when I set cache time to 0 does the cache file time stamp never change.
Than you,
Eric
Advanced RSS Ticker (Ajax invocation)
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/rsstickerajax/index.htm
3) Describe problem:
Why is a page reload required to update the RSS feed cache?
It could not be easier to install this script, just unzip and it works. Thank you :)
This is the first time I've ever looked into the detail of a AJAX script and I'm confused by how the cache is managed. I expected that the news ticker would get new news without the user having to reload the page. However, from what I can tell the only time the RSS cache file is updated, or read, is when the page with the java script is loaded. After the initial page load it seems that the java script endlessly cycles through the content loaded when the page was requested. So, if a user loaded the page on Friday, left his browser open over the weekend, on Monday the page would be cycling though the same items even if there was new news over the weekend.
If my understanding is correct how would one modify the java script to periodically check the cache to see if it needs to be updated and potentially get new content?
If my understanding is not correct then when when I set cache time to 0 does the cache file time stamp never change.
Than you,
Eric