PDA

View Full Version : Problem with Ajax Pagination script v1.2.1



gylim78
12-01-2008, 04:31 PM
1) Script Title:
Ajax Pagination script v1.2.1

2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ajaxpaginate/

3) Describe problem:
I am creating a website that is a showcase of different people's products. Therefore I am using the above script to page though all the products. The problem is that I realized that there is only 1 page, this script does not work in FF but will work in IE and Google Chrome.

Weird. So to make sure that I do not have any coding errors in my own page, I took the demo files and changed the following lines

var bookonflowers={
pages: ["demofiles/flower.htm", "demofiles/flower2.htm", "demofiles/flower3.htm", "demofiles/flower4.htm"],
selectedpage: 0 //set page shown by default (0=1st page)
}

TO

var bookonflowers={
pages: ["demofiles/flower.htm"],
selectedpage: 0 //set page shown by default (0=1st page)
}

Same thing happened. In FF the ajax content was not loaded but in IE and chrome it is ok.

Could someone please help me out here. Thanks

ddadmin
12-02-2008, 03:04 AM
Ah yes there does in fact seem to be a bug. Inside the .js file, find the below line, and add the line in red above it:


if (paginatelinks.length>0)
this.paginateInfo.nextlink[i]=paginatelinks[paginatelinks.length-1]

gylim78
12-02-2008, 08:05 AM
Thank You very much.

It works !!