Pagination

Pagination

findingsimplefindingsimple Posts: 2Questions: 0Answers: 0
edited March 2012 in General
I've got an implementation of datatables with pagination where the pagination buttons are nearly always below the fold. When a user clicks the next or previous buttons (or any of the pagination buttons really) I'd like to kick them back to the top of page. At the moment it kinda takes them half way.

Best method to do this?

I had a look at the callback info but couldn't figure out if any of them would be useful.

Any help is greatly appreciated and thanks in advance.

Replies

  • findingsimplefindingsimple Posts: 2Questions: 0Answers: 0
    Ok ended up just doing some jquery:

    [code]
    jQuery( ".ui-button" ).live("click", function(){
    jQuery('body,html').animate({
    scrollTop: 0
    }, 200);
    return false;
    });
    [/code]
This discussion has been closed.