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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<div> question

Status
Not open for further replies.

mwa

Programmer
Jul 12, 2002
507
US
I don't know if this possible but here goes...

Say I have this:

<div style=&quot;overflow:auto&quot;>
<table>
<tr><td>Row 1</td></tr>
<tr><td>Row 2</td></tr>
<%'etc.. etc..%>
<tr><td>Row 100</td></tr>
</table>
</div>

Is it possible to have a link on the page that will scroll down right to Row X in the table?

I was thinking about having this inside the <td>'s:
<A NAME='Row1'></A>
And this above the <div>:
<A href='#Row1'>Row 1</A>

But this does not work...

Any ideas???

thanks,
mwa

 
Here u go:

<HTML>
<HEAD>
</HEAD>
<BODY>
<a href=&quot;#test&quot;>Hey test</a>
<div style=&quot;overflow:scroll;height:150;width:150&quot;>
<table>
<tr><td>Row 1</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 2</td></tr>
<tr ><td><a name=test>Row test</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 2</td></tr>
<tr><td>Row 100</td></tr>
</table>
</div>
</BODY>
</HTML>

&quot;did you just say Minkey?, yes that's what I said.&quot;

MrGreed
 
Mike:

Those <a name>'s seem to be ignored within tables.

Someone may very well have a better solution for you, but I think this is workable:

<div style=&quot;overflow:auto&quot;>
<a name=&quot;row1&quot; id=&quot;row1&quot;></a>
<table>
<tr><td>Row 1</td></tr>
</table>

<a name=&quot;row2&quot; id=&quot;row2&quot;></a>
<table>
<tr><td>Row 2</td></tr>
</table>
<%'etc.. etc..%>

<a name=&quot;row100&quot; id=&quot;row100&quot;></a>
<table>
<tr><td>Row 100</td></tr>
</table>
</div>

Len Lindquist
 
@%*&#... I had it right... It's just that I was writing this out in asp and had this:

<A NAME='trim(rsconn(&quot;alpha&quot;))'>

instead of this:

<A NAME='<%=trim(rsconn(&quot;alpha&quot;))%>'>


Thanks for your help...
mwa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top