PDA

View Full Version : Fixed Rows in Scrolling Frame


gblair
10-21-2002, 09:39 PM
I have a frameset of 2 rows with the top frame holding search criteria for a database query and the bottom frame poised to display results after the top frame's submit button has been clicked. In the top frame, a user is able to add multiple rows to a table (these are actually search terms) allowing the user to search with as many terms as they like. The problem I am having is that if the user selects more than three terms (and three rows are added to the table), the buttons I have at the bottom of the form scroll off the screen and the user has to drag down on the scrollbar at the point they wish to submit. Is there a way to have the form automatically scroll down to always show the bottom part of the form (and therefore the buttons)?.

Any help would be appreciated.

Regards,
Geoff

glenngv
10-22-2002, 02:36 AM
when do you exactly want the form to scroll down?

joh6nn
10-22-2002, 02:54 AM
wouldn't it be easier to put the buttons at the top of the screen?

gblair
10-22-2002, 03:13 AM
Glenn:
I guess my thought was that the bottom part of the form would always be displayed. So to answer your question, I would like the form to scroll *as* elements (rows in this case) are added to the form such that the form scrolls up as it gets longer. I guess I could have the buttons at the top of the form as well... What do you think?

Geoff

glenngv
10-22-2002, 03:53 AM
you could set focus to the last field so that it would scroll down.

chrismiceli
10-22-2002, 03:56 AM
i would do what glen is saying


<body onLoad="document.forms[0].hello.focus()">
<input type="text">
<input type="text">
<input type="text">
<input type="text">
<input type="text">
<input type="text">
<input type="text">
<input type="text">
<input type="text">
<input type="text">
<input type="button" value="hi" name="hello">

gblair
10-22-2002, 06:34 PM
Thanks guys. Setting the focus() on the last element works great--exactly what I was looking for.

Geoff