Click to See Complete Forum and Search --> : keep my web page at same position after submit


digiti0
05-09-2003, 10:36 PM
is it possible in an asp application to redisplay my web page at the same position it was at when a submit button was clicked? I want to add a submit button that will open up additional fields for input, but i don't want the page to redisplay at the top, i want the user to be looking at the same part of the page he was at when he hit the submit button. Can that be done?
Thanks!

digiti0
05-10-2003, 08:13 AM
thank you very much, dave

ssurmi
05-10-2003, 05:52 PM
what if it's not asp? it is php and html.
here is what my code looks like:

echo "<form action='Process.htm?sPId=10&x=".microtime()."' method=post >
<td align=center valign=middle><font size=-1>
<input type=submit name=submit value='Completed'>
<input type=hidden name=sCompleted value='".$x."::".$sReportDataId."'>
</font>
</td>
</form>";

is it possible to use scroll in this case?

digiti0
05-11-2003, 12:24 AM
Dave, your code works great but I can't figure out how to save the y-coordinate value at the time of submit, to plug into the scrollPosition variable--please help

digiti0
05-11-2003, 02:11 PM
PERFECT! thanks again