Results 1 to 3 of 3

Thread: Problem with Ajax Pagination script v1.2.1

  1. #1
    Join Date
    Dec 2008
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Problem with Ajax Pagination script v1.2.1

    1) Script Title:
    Ajax Pagination script v1.2.1

    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici.../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

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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:

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

  3. #3
    Join Date
    Dec 2008
    Posts
    12
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thank You very much.

    It works !!
    Last edited by gylim78; 12-03-2008 at 03:59 AM.

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
  •