 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
robertos
Joined: 17 Mar 2007 Posts: 32
|
Posted: Sat Apr 07, 2007 6:04 pm Post subject: PAGER_WRAPPER + MDB2+HTML_AJAX + autoserver |
|
|
Hello,
I've managed to do a normal paging with PAGER_WRAPPER and MDB2,only now i want to it with ajax too using the autoserver.
This is the function which should do the paging from my class which is included from the autoserver file:
| Code: | function paging($pageID=null){
require_once 'Pager/Pager_Wrapper.php';
$conn = $this->create_conn();
$user_id = $_SESSION["sess_user_id"];
$pager_params = array( 'mode' => 'Sliding', 'append' => false,'path' => '',
'fileName' => 'javascript:remoteHW.paging(%d);',
'perPage' => 5,'delta' => 1);
$query = "SELECT * FROM `history`";
$paged_data = Pager_Wrapper_MDB2($conn, $query, $pager_params);
-------- The standard paging code----
return $content;
} |
The problem is that this only works for the first page. When i click the link for the other pages the content does not change,it remains on the first page. No error. I don't think i'm building the $pager_params correctly. Could you please help?Thanks. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|