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


Recent Events
  • 05/09/2017 BIG Autumn SALE

    Use AUTUMN17 coupon code to buy our WordPress or Joomla! extensions with 25% discount. Hurry up! The offer is valid till 11 September.

  • 14/04/2017 Happy Easter

    Wish a Happy Easter and give 30% discount for all our WordPress and Joomla! extensions. Use EASTER17 coupon code. The offer is valid till 17 April.


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. 1 Year, 1 Month 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 17:15 By shaughan.
The administrator has disabled public write access.
 
#58291
Re:pagination issues - scroll to top and reset. 1 Year, 1 Month ago Karma: 666
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. 1 Year, 1 Month 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. 1 Year, 1 Month 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. 1 Year, 1 Month ago Karma: 666
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