[eluser]Fumigator[/eluser]
Here's a change I recommend for anyone wanting to get this all working. Instead of using the "onclick" as the OP demonstrates, assign the anchor elements to a class:
Code:
if($this->is_ajax_paging == TRUE)
{
$paging_function = ' class="pagecontrol"';
}
else{
$paging_function = '';
}
You can then use a simple jQuery selector to detect when a paging control anchor is clicked and react to it. Here's mine:
Code:
$('.pagingcontrol').live('click', function()
{
$.ajax({
type: "GET",
url: $(this).get(),
success: function(html) {
$('#content_box').html(html);
}
});
return false;
});