Log in

View Full Version : Ajax Paginate - Cant see if just 1 page on firefox



moxsum
10-20-2008, 07:02 AM
1) Script Title: Ajax Paginate

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


<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!

moxsum
10-20-2008, 07:30 PM
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

ddadmin
10-21-2008, 08:34 AM
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/dynamicindex17/ajaxpaginate/index.htm