Forums

This topic is locked

Dynamic links and anchors

Posted 05 Jul 2001 17:21:10
1
has voted
05 Jul 2001 17:21:10 Louis Chamberland posted:
I am presently using UD 4.0 and while I use the Go To Detail Page server extension I am trying to add an anchor to return to the exact level of that page when I return to the previous page without scrolling down. Does anybody have a great way to do this for dynamic repeat regien links???

It would solve a great deal of headaches..

Thanks a million,

Louis Chamberland

Louis Chamberland
2WINZ Communications Inc.

Replies

Replied 06 Jul 2001 19:23:22
06 Jul 2001 19:23:22 Joel Martinez replied:
I know that IE does this automatically with the back button... but if you really want to go through the trouble, then you could use something that is unique to each record (like it's ID or something) to build the anchor:

<a name="<%=rs.fields("ID".value%>">

then add the ID to the URL parameter of the detail link:

<a href="detail.asp?anchor=<%=rs.fields("ID".value%>">

finally, for the link back, use this:

<a href="masterpage.asp#<%=request.querystring("anchor"%>">

I belive that that should work... (didn't have time to test it)

Joel Martinez

----------
Is this thing on?....

Reply to this topic