Results 1 to 3 of 3

Thread: Ajax Paginate - Cant see if just 1 page on firefox

  1. #1
    Join Date
    Aug 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Ajax Paginate - Cant see if just 1 page on firefox

    1) Script Title: Ajax Paginate

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

    3) Describe problem:
    Ok, so the script works fine when i have multiple pages. But If I just have 1 page listed, nothing shows in firefox.. but it still shows in IE/safari.

    http://www.abcarcade.com/drop-sum.html
    go to the comments section, thats where im using the script, you should see comments in IE/Safari, but nothing shows in firefox.

    Here is the code im using:
    Code:
    <script type="text/javascript">
    
    var bookonflowers={
    pages: ["http://www.abcarcade.com/gamecomments.php?id=1814&pagenum=1"],
    selectedpage: 0
    }
    
    var mybookinstance=new ajaxpageclass.createBook(bookonflowers, "bookcontent", ["paginate-top", "paginate-bottom"])
    
    </script>
    im using php to dynamically create a list of urls. It works if I have more then 1 page listed, but if theres only been 1 comment for example, so theres only 1 comment page, it wont show.

    Please help me!

  2. #2
    Join Date
    Aug 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Anyone got an idea?? I need to figure this out.

    I tried, using the demo code, and just putting 1 url in the javascript, and it doesnt show on firefox, so i dunno its a problem with my code??

    Thanks

  3. #3
    Join Date
    Aug 2004
    Posts
    9,878
    Thanks
    3
    Thanked 962 Times in 951 Posts
    Blog Entries
    15

    Default

    Ah yes there's a bug in the script that occurs when you only have 1 page. Try the updated .js file on the script page (v 2.1.1): http://www.dynamicdrive.com/dynamici...nate/index.htm
    DD Admin

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
  •