Forums
This topic is locked
Open a new window - code?!!!
22 Mar 2004 11:52:30 A B posted:
Hi! I have created a search engine for certain pdf files on my company's intranet but have trouble coding the links to open in a new window. I know target = "_blank" for the <a href=".."> tag that points the user to the file is needed,
but as the link is created from a "Response.Write" command when i enter the "target = "_blank" " command in the <Href> tag it comes up with "False" any ideas??????
The following is the code i use in order to create the link.
Response.Write "<A HREF=""" & FormatURL(objFile.Path) &""">" & _
strTitle & "</A><BR>" & vbCrLf
Replies
Replied 22 Mar 2004 13:54:20
22 Mar 2004 13:54:20 Rene Bandsma replied:
I think that you should not use Resonse.Write but a string that is automaticly returned as plain HTML.
Replied 22 Mar 2004 13:57:42
22 Mar 2004 13:57:42 A B replied:
What do u mean?
Replied 26 Mar 2004 21:26:03
26 Mar 2004 21:26:03 Rene Bandsma replied:
When you put the total HTML code into a database field, e.g. "<A HREF = "bla.htm"> and place this field as HTML into your script... just an idea...
Or use: <A HREF = "" & response.write & ">" & "_blank"
I did NOT tested the code... i always code with trial-and-error...
Or use: <A HREF = "" & response.write & ">" & "_blank"
I did NOT tested the code... i always code with trial-and-error...
Replied 27 Mar 2004 00:57:41
27 Mar 2004 00:57:41 Phil Shevlin replied:
I answered this under your post in HTML