Focal Point
[SOLVED] Setting scrollbar position in Maintain

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7201000472

February 29, 2008, 04:51 PM
brjohnson
[SOLVED] Setting scrollbar position in Maintain
Hi, everyone

It seems that when a form loads the scrollbar defaults to the position of the element that is first in the tab order. I have a form that has a large html object on it with only two buttons underneath it. So when my page loads the scrollbar moves all the way down to the buttons. I can solve this problem by moving my buttons above the html object, but I would rather leave the buttons at the bottom of the screen. Is there any way to set the scroll bar position, or to have it default to the top? This isn't a major problem, but it is quite annoying. Any ideas?

Bryan

This message has been edited. Last edited by: brjohnson,


Bryan Johnson
WebFOCUS 7.7.03
Maintain
Win 7
Excel, PDF, HTML
March 03, 2008, 09:48 AM
Maintain Wizard
Bryan
I tried a few things using JavaScript and the scrollTop command, but the form is always scrolling to my button. The only way this works for me is if I place a dummy field on the top of the form and control starts there. It can be just one pixel, but the cursor does have to rest there.

Sorry
Mark
March 04, 2008, 10:14 AM
brjohnson
Thanks Mark

That works fine.

Bryan


Bryan Johnson
WebFOCUS 7.7.03
Maintain
Win 7
Excel, PDF, HTML