Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    JS RSS reader - loading, but not updating

    Hello,

    I realize that this might not be the entirely correct forum to answer my question, but I'm going to try. If someone can direct me somewhere else, that'd be appreciated.

    I've implemented a Javascript-based RSS reader into a site that I'm working on which I found here (http://www.javascriptkit.com/dhtmltu...jaxfeed3.shtml).

    The reader loads my rss feed properly, but only on the first load. If I update that feed (whether adding or deleting items) which was read originally and refresh the page that has the reader, the reader still displays the previously fetched content (without the updates). I've checked the .xml file numerous times and it IS uploading properly and contains the most up-to-date content, the reader is just not displaying it. If I save the updated file as something else and change the link in the reader, it again loads the most up-to-date content and then fails to fetch any newer updates after the initial load.

    If anyone has any suggestions to fix a seriously frustrating issue, I'd appreciate it.

    Regards.

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,965
    Thanks
    79
    Thanked 4,429 Times in 4,394 Posts
    Probably just your browser being overly agressive with the caching. Try appending a random number or maybe the time of day to the URL that you hit the page with.

    For starters, just add "?junk=111222" or (if you already have a ? in the URL) "&junk=333222" where the number there is unimportant; just use a different number each time. If that does the job, then show where you will *use* the code/url and let's see if we can find a way to append a random/time number.

    Can you show the problem "live" to us??

  • #3
    New to the CF scene
    Join Date
    Jul 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you for your reply, I expected it might have something to do with caching, or similar.

    I've set up http://www.perpetualmotion.org/new/index.php with the reader (aka "rssdisplayer") and http://www.perpetualmotion.org/new/news/news.xml is the actual feed.

    I'm aware of how to generate and then append a random number to the end of a url, but do you think this is what would be required? Please let me know if there's anything else you need.

    Regards


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •