Reposition to area of screen after page is submitted ..
Posted on 2011-03-17
I have a situation where I need to focus on an element after the page is submitted but for it to be "smooth".
I have a screen with table data on it, the table has, say, 100 records that cause the page to scroll. An item near the bottom of the page is updated and once it is updated, the page is automatically submitted (refreshed), there's no way around the submittal of the page.
Once the page "comes back", I need for that same element to have focus and for it to happen smoothly. Currently, once the page is reloaded, it is at the top of the page and when I reposition down the page, you can see the page "move down". So, what you have is the page having to load and then visibly "move down" to the focused element. I want to eliminate the viewing of the "moving down" part.
Also, centering the focused element would be nice too, or at least moving it up from the bottom edge of the screen.