Jump to content

Question

Posted

When viewing the page by 50 or 100 entries, when you go to the next page, the screen should take you back to the top, not leave you at the bottom. It makes it so you have to scroll back up to get to the top.

2 answers to this question

Recommended Posts

  • 0
Posted

This is actually difficult and easy at the same time... it's easy because it just requires one line of code after a successful page (AJAX) call:

$('body').scrollTop($('#dynamic').offset().top)

It's also difficult because they're using a pre-programmed and minified (light encryption) API for the charting and the calls to the server. I'm trying to find where to inject the line but it's proving to be a hassle.

 

Also, it's just a simple line to get the job done and the way the page is coded would cause the page to actually scroll down if the top navigation is used and the user is scrolled above the table. (Based on what I'm gathering from the code.)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

By using this site, you agree to our Guidelines. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. - Privacy Policy