Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

pagination issues - scroll to top and reset.
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: pagination issues - scroll to top and reset.
#58290
pagination issues - scroll to top and reset. 7 Years, 8 Months ago Karma: 0
Hi, would there be a reason for pagination not to return to the top of the table when accessing the next set of results? I've resorted to trying a jQuery script to scroll to the top, but not having much success, it works but I'm getting a datatable warning. Does anyone else have this issue? I'm using the Smoothness UI theme. Here's the code I (sort of) got working

Code:


jQuery(document).ready(function() {
    var dataTable = jQuery('#at_386_wrapper').dataTable({
        iDisplayLength: 20,
        sPaginationType: "paging_full_numbers"
    });
    function paginateScroll() {
        jQuery('html, body').animate({
           scrollTop: jQuery(".at_386_wrapper").offset().top
        }, 100);
        console.log('pagination button clicked');
        jQuery(".ui-button").unbind('click', paginateScroll);
        jQuery(".ui-button").bind('click', paginateScroll);
    }
    paginateScroll();
});



Last Edit: 2016/08/22 23:15 By shaughan.
The administrator has disabled public write access.
 
#58291
Re:pagination issues - scroll to top and reset. 7 Years, 8 Months ago Karma: 747
Hello,

Could you provide a link to a page where the code is used?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#58294
Re:pagination issues - scroll to top and reset. 7 Years, 8 Months ago Karma: 0
Thanks for your reply. An example URL is
Code:

http://fujitsugeneral.kiwiwebz.co.nz/where-to-buy-home
.
If you click the map to the left on Auckland or Christchurch, the pagination appears below the results. Click "Last" or "2" etc, and there's no scroll to the header. Also, the pagination selection does not reset to the 1st results of you change the search i.e. if you're on page "2" of the results, the next search results for a new search start at page "2". The site is development right now, I'm delighted with what I've achieved with ari-datatables, but Id rather use working pagination if I could. Thanks!
The administrator has disabled public write access.
 
#58295
Re:pagination issues - scroll to top and reset. 7 Years, 8 Months ago Karma: 0
I have NOT left the Jquery code shown above in the site for now, I don't think it's a great idea in general to do the scroll to top that way if it's possible to do so natively Ive simply got a setting wrong in the module.
The administrator has disabled public write access.
 
#58296
Re:pagination issues - scroll to top and reset. 7 Years, 8 Months ago Karma: 747
The extension doesn't have an option which provides ability to move to the top of a table when page is changed.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1