PDA

View Full Version : Ajax Pagination Problem



rob12345
03-02-2008, 06:08 PM
1) Script Title: Ajax Pagination

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

3) Describe problem:

Hi...just a newbie to php / ajax and this forum.. loaded and modified your Ajax Pagination script but have two questions/ problems:

1 ) can't get direct link to work: just get java script error at bottom of page.(tray)

2) how can I get rid of current select display options, I want to run it just by direct links.

test page set up at:
http://free2cu.com/canada/ajax/demo.php

thanks in advance for any help... Rob

ddadmin
03-03-2008, 01:31 AM
By direct links, do you mean you want users to be able to select a particular page to see with arbitrary links you define yourself, instead of the pagination links auto generated by the script? You can hide the later by doing so in the .css file of the script:


.pagination{
padding: 2px;
margin: 1em 0;
clear: both;
display: none;
}

With regards to arbitrary links, this is discussed on the script page, via something like:


<a href="javascript:scriptinstance.selectpage(2)">Go to 3rd page</a>

rob12345
03-03-2008, 02:50 PM
Hey ddadmin.. thanks for the input.. found the problem.. great forum service..chow rob