Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically Scrolling To The Bottom Of The Web Page 2

Status
Not open for further replies.

FontanaS

Programmer
May 1, 2001
357
US
When A User Hits An Id Number To Edit A Record, The Web Page Refreshes And At The Bottom Of The Web Page Are Fields That Get Populated So The User Can Make Changes.

I Would Like The Web Page To Scroll To The Bottom As Soon As The User Selects An Id Automatically.

Is This Possible?

THANKS!
 
place an anchor in the url and in the position where you want to go on the page
 
I created the anchor and placed in at the bottom -
<a name="edit"><BR>


Know i am trying to place it in the code but am having problems as to the correct place (&#edit) -

<a href="Employees.asp?EmployeeId=<%=server.urlencode(RS("EmployeeId"))%>&amp;%>"><%=RS("EmployeeId")%></a>

THANKS!
 
well you'll need to close the anchor for edit also

<a name="edit">something</a>

and then your querystring looks reduntant on first glance.
 
<a href="Employees.asp?EmployeeId=<%=RS("EmployeeId")%>#edit"><%=RS("EmployeeId")%></a>

like ethorn said

<a name="edit">&nbsp;</a>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top