[jQuery] Re: Tablesorter pager and ajax

2008-11-23 Thread Balazs Endresz
I've had a closer look at that page and triggering the update is only needed if you're updating just the table contents, I thought you were doing that. And as you are loading the same page again all the javascript will be loaded again too, which is unnencessary in this case, but most likely the

[jQuery] Re: Tablesorter pager and ajax

2008-11-22 Thread led
$('#foo').click(function() { $('#centro').empty(); $('#centro').hide(); $('#centro').fadeIn(3000).load('results_casa_mes.asp',{ nm_mes: document.getElementById('teste4').value, pessoas: document.getElementById('pessoas').value, tipo: document.getElementById ('tipo').value, localidade:

[jQuery] Re: Tablesorter pager and ajax

2008-11-22 Thread led
$('#foo').click(function() { $('#centro').empty(); $('#centro').hide(); $('#centro').fadeIn(3000).load('results_casa_mes.asp',{ nm_mes: document.getElementById('teste4').value, pessoas: document.getElementById('pessoas').value, tipo: document.getElementById ('tipo').value, localidade:

[jQuery] Re: Tablesorter pager and ajax

2008-11-22 Thread Balazs Endresz
You triggered the update before the data loaded, you have to do that in a function as the third argument: $('#foo').click(function() { $('#centro').empty(); $('#centro').hide(); $('#centro').fadeIn(3000).load('results_casa_mes.asp', { nm_mes: $('#teste4').val(),

[jQuery] Re: Tablesorter pager and ajax

2008-11-22 Thread led
Please look at http://realferias.com/pager.asp . When the table is in a file that is loaded, the tablesorter and the pager fails. i?m using the $(table).trigger(update); but nothing. On Nov 22, 11:03 am, Balazs Endresz [EMAIL PROTECTED] wrote: You triggered the update before the data loaded,

[jQuery] Re: Tablesorter pager and ajax

2008-11-21 Thread Balazs Endresz
http://tablesorter.com/docs/example-ajax.html inside the callback (the third argument for .load ) // let the plugin know that we made a update $(table).trigger(update); On Nov 21, 5:43 pm, led [EMAIL PROTECTED] wrote: I've noted that tablesorter and the pager don't work in ajax response such