PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
PAGER_WRAPPER + MDB2+HTML_AJAX + autoserver

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTML
View previous topic :: View next topic  
Author Message
robertos



Joined: 17 Mar 2007
Posts: 32

PostPosted: Sat Apr 07, 2007 6:04 pm    Post subject: PAGER_WRAPPER + MDB2+HTML_AJAX + autoserver Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> HTML All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software