PDA

View Full Version : Ajax Pagination script - Refresh Div



AndyWebb
09-25-2010, 02:29 PM
Ajax Pagination script

http://www.dynamicdrive.com/dynamicindex17/ajaxpaginate/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

AndyWebb
09-25-2010, 05:25 PM
bumpidy bump

AndyWebb
09-26-2010, 02:04 PM
anyone :(

jscheuer1
09-26-2010, 03:17 PM
Assuming that's the first one:


setInterval(function(){mybookinstance.selectpage(0);}, x * 1000);

Where
mybookinstance is the instance name for the declaration when you did something like:


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:


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