Results 1 to 2 of 2

Thread: Ajax Pagination Script - need to refresh for newest content

  1. #1
    Join Date
    Aug 2014
    Orangeville, Ontario
    Thanked 0 Times in 0 Posts

    Default Ajax Pagination Script - need to refresh for newest content

    1) Script Title: :: Ajax Pagination script v1.2.2

    2) Script URL (on DD):

    3) Describe problem: This script works well for me, I'm able to view six different pages on my website that are defined with this script. The pages are loaded as external files. Each page is dynamic content which means that the files it loads, are subject to change at any time.

    If I visit my website without being logged in, the first pagination page might look like this:

    1) Bird
    2) Bear
    3) Horse
    4) Cow

    Now once I proceed to log myself in and have additional security applied to my account (my site uses access levels), the dynamic content changes because it shows me additional information (animals in this example) that is not shown to the public (people who are not logged on).

    When I am logged on I should be seeing:

    1) Bird
    2) Zebra
    3) Bear
    4) Dolphin
    5) Horse
    6) Cow

    because Zebra and Dolphin are animals I have access to now. However I do not see the results above, I see the results from when I was not logged on (the 4 animals instead of 6). I have to press F5 to refresh the page and then I can see the proper content. This is a caching issue and I've experienced it before with Ajax loads. I was able to correct it before by changing the html form from a GET to a POST but this was an entirely different script.

    Aside from having my members refresh to see new changes (which defeats the dynamic content idea) what can I do? I have tried using meta tags to tell the browser not to cache, but to no avail.

    This script allows for the refresh() command but I'm not certain if this helps me in any way.

    Is there a way to have the pagination load the content without it being cached? It is loading the old data rather than the new data. Thank you.

  2. #2
    Join Date
    Aug 2004
    Thanked 1,007 Times in 992 Posts
    Blog Entries


    First thing I'd suggest trying is to ensure the page itself isn't cached. View the suggestions listed here: If that doesn't work then the script's refresh() method may be helpful, though first and foremost you should ensure the page itself isn't cached, otherwise it's meaningless.
    DD Admin

Similar Threads

  1. Ajax Pagination script - Refresh Div
    By AndyWebb in forum Dynamic Drive scripts help
    Replies: 3
    Last Post: 09-26-2010, 03:17 PM
  2. Ajax Tabs Content Script refresh tab
    By pieto in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 01-08-2009, 10:10 AM
  3. Ajax Pagination Script-Building constant pagination
    By eth in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 07-23-2008, 10:36 AM
  4. Featured Content Slider v2.4 AND Ajax Pagination script
    By mikeim in forum Dynamic Drive scripts help
    Replies: 9
    Last Post: 07-22-2008, 09:22 PM
  5. Replies: 1
    Last Post: 05-19-2008, 12:38 AM


Posting Permissions

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