DRW

G

Guest

I would like to have a clickable hyperlink within the DRW results that sends
the results of a field into a new window. ie: The results page shows details
of an employee (Name, Address, Age Etc) and I would also like the viewer to
be able to click on a button or link to be able to see the employees profile
in a new window (Profile being a field in the same table)

OR... better still, open a new window with the results of a connected table
containing the Profile AND other fields. What syntax would I use if this is a
possibility?

Thanks for any advice and help.
 
K

Kathleen Anderson

How to make the hyperlinks open in a new window

First, remove all the gray code from the area that displays the field, and
then add the target tag, so it looks like this - the trick is to surround
the _blank with single quotes, not double.

<p><b>Web Site:</b>&nbsp;<%="<a target='_blank' href=""" &
FP_FieldLink(fp_rs,"website") & """>" & FP_FieldVal(fp_rs,"website") &
"</a>"%></p>


--

~ Kathleen Anderson
Microsoft MVP - FrontPage
Spider Web Woman Designs
Expression Web Resources: http://www.spiderwebwoman.com/xweb/
FrontPage Resources: http://www.spiderwebwoman.com/resources/
Please reply to the newsgroup for the benefit of others
 
G

Guest

Kathleen, Thanks - I tried pasting in your code (obviuosly swapping website
for Profile) instead of the gray code but did not seem to work. Here's the
code I have already;

<!--webbot
bot="DatabaseResultColumn" startspan

s-columnnames="ID,Sector,Company,Contact,Website,Email,Telephone,Address,Position,Area,Salary,Profile,Per,Description,Remote_computer_name,Timestamp"
s-column="Profile" b-tableformat="TRUE" b-hasHTML="FALSE"
clientside
preview="<font size="-1">&lt;&lt;</font>Ref<font
size="-1">&gt;&gt;</font>"
b-makelink b-MenuFormat
--><%=FP_FieldVal(fp_rs,"Profile")%><!--webbot
bot="DatabaseResultColumn" endspan i-checksum="2939" -->
</font></b></td>

Can you see where I am going wrong? Many thanks. Ray
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

change colour of background in DRW 2
Hyperlink in DRW 7
Hyperlinks to ASP Pages 5
Adding DRW field values 2
Database results 1
DRW email address from an access database to outlook 3
DRW in a grid 6
ASP Query 3

Top