Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Need help pagination smarty paginate and ajax

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
jimmy230
Smarty Rookie


Joined: 14 Mar 2009
Posts: 9

PostPosted: Mon May 24, 2010 8:44 pm    Post subject: Need help pagination smarty paginate and ajax Reply with quote

i hope someone can help me with this I use smarty paginate with all my site recenty i started to combine it with ajax everythings its running very good but pagination.

$sitio="mywebsite.com/index.php?action=list_users";

SmartyPaginate::connect();
SmartyPaginate::setLimit(40);
smartypaginate::seturl ($sitio);
SmartyPaginate::setPrevText('Pagina anterior');
SmartyPaginate::setNextText('Siguentes');
SmartyPaginate::setFirstText('Primera pagina');
SmartyPaginate::setLastText('Ultimas');

in my tpl will go to the page i click but i need to replace
this: mywebsite.com/index.php?action=list_users
with this: javascript:ajaxpage('index.php?action=list_users', 'contenido')

i have tried everything with no luck should i edit the paginate functions ??
i anybody knows how please help me..
thanks in advance..

Jimmy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General All times are GMT
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


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP