Results 1 to 4 of 4

Thread: Ajax Pagination script - Refresh Div

  1. #1
    Join Date
    Oct 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Angry Ajax Pagination script - Refresh Div

    Ajax Pagination script

    http://www.dynamicdrive.com/dynamici...nate/index.htm

    Hey Guys,

    One of my favorite scripts on here has got to be the Ajax Pagination script ..

    What I personally need it to be able to be do is auto refresh/reload the default starting div every X amount of secounds ..
    Obviously not the whole page just the div?

    I wonder if that would be possible? any JS pros in here?

    Any ideas appreciated

  2. #2
    Join Date
    Oct 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    bumpidy bump

  3. #3
    Join Date
    Oct 2006
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    anyone

  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

    Assuming that's the first one:

    Code:
    setInterval(function(){mybookinstance.selectpage(0);}, x * 1000);
    Where
    Code:
    mybookinstance
    is the instance name for the declaration when you did something like:

    Code:
    var mybookinstance=new ajaxpageclass.createBook(bookonflowers, "bookcontent", ["paginate-top", "paginate-bottom"])
    and x is the number (unquoted) of seconds.

    So you would have something like:

    Code:
    var mybookinstance=new ajaxpageclass.createBook(bookonflowers, "bookcontent", ["paginate-top", "paginate-bottom"]);
    setInterval(function(){mybookinstance.selectpage(0);}, 10 * 1000);
    - John
    ________________________

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

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
  •