pagination doesn't work after search filter entered

jllav03 01 Feb, 2012
I'm having a problem with my chronoconnectivity form - specifically pagination navigation. The pagination works fine on the main page which displays 16000 records, but when I search by any given field and for example get a result of 300 account manager records, that's when the pagination breaks. Once I hit next or page 2 to view account manager record 101, it sends me back to the 16000 record page. Below is the pagination code in my chronoconnectivity footer. I have chronoforms v3.2.

<?php
$script = "
window.addEvent('domready', function() {
var pagelinks = $$('div.page-inactive a');
var form = $$('form[name=connectivity]')[0];
var limitstart = $$('input[name=limitstart]')[0];
pagelinks.each(function(link) {
var href = link.getProperty('href');
var start = href.substr(href.lastIndexOf('start=')+6);
var title = link.getProperty('title');
var new_link = new Element('a', {
'events': {
'click': function() {
limitstart.value = new_link.getProperty('start');
form.submit();
}
},
'title': title,
'start': start
});
new_link.setText(title);
link.replaceWith(new_link);
});
});
";
$doc =& JFactory::getDocument();
$doc->addScriptDeclaration($script);
?>

</table><br><br>{pagination}


Any help would be appreciated! Thank you
GreyHead 01 Feb, 2012
Hi jllav03 ,

There's a thread here - probably in the ChronoConenctivity forum - with two or three examples of JavaScript snippets to solve this. Unfortunately the fix depends on the pagination code from the template.

Bob
This topic is locked and no more replies can be posted.