navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Opening new window with frontpage link

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Opening new window with frontpage link
Page: [1]
 
WIryeman

 

Posts: 14
Joined: 2/27/2003
Status: offline

 
Opening new window with frontpage link - 11/2/2003 13:07:47   
I have tried several different ways but I can not get the coding right please help here is my code and it is on spookey's diet

<%="<a href=""" & FP_FieldLink(fp_rs,"URL") & """>" & FP_FieldVal(fp_rs,"URL") & "</a>"%>

Thanks In Advance

_____________________________

May Your Boots Dry Quickly
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Opening new window with frontpage link - 11/2/2003 13:50:52   
Doesnt look too bad. Perhaps use FP_Field() instead of FP_FieldLink()

What is the result you are seeing?

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to WIryeman)
WIryeman

 

Posts: 14
Joined: 2/27/2003
Status: offline

 
RE: Opening new window with frontpage link - 11/2/2003 14:01:49   
The displaying is fine I just can not get it so the link opens in a new window. As it sits because I am using frames the link opens in the same frame. These are outside links so I want the user to have a new window open when they click on it

_____________________________

May Your Boots Dry Quickly

(in reply to Spooky)
Patti

 

Posts: 125
From: USA
Status: offline

 
RE: Opening new window with frontpage link - 11/2/2003 14:15:56   
I think all you need is to add in the hyperlink target="_blank" to open in new window.

I open some links on my page using asp as follows:

<a href="http://<%=strURL%>" target="_blank"><%=strWebsite%></a>

Patti

(in reply to WIryeman)
WIryeman

 

Posts: 14
Joined: 2/27/2003
Status: offline

 
RE: Opening new window with frontpage link - 11/2/2003 14:19:07   
I have tried that in the location you suggested and I get an asp coding errror when I open the page with the link on it.

_____________________________

May Your Boots Dry Quickly

(in reply to Patti)
Patti

 

Posts: 125
From: USA
Status: offline

 
RE: Opening new window with frontpage link - 11/2/2003 14:30:59   
Can you tell us the asp error you get.

Patti

(in reply to WIryeman)
WIryeman

 

Posts: 14
Joined: 2/27/2003
Status: offline

 
RE: Opening new window with frontpage link - 11/2/2003 14:37:28   
With this coding:

<%="<a target="_blank" href=""" & FP_FieldLink(fp_rs,"URL") & """>" & FP_FieldVal(fp_rs,"URL") & "</a>"%>


I get this error:

Microsoft VBScript compilation error '800a0408'

Invalid character

/Links/PostedLinks.asp, line 74

Response.Write("<a target="_blank" href=""" & FP_FieldLink(fp_rs,"URL") & """>" & FP_FieldVal(fp_rs,"URL") & "</a>")

(in reply to Patti)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Opening new window with frontpage link - 11/2/2003 17:21:44   
<%="<a target=""_blank"" href=""" & FP_FieldLink(fp_rs,"URL") & """>" & FP_FieldVal(fp_rs,"URL") & "</a>"%>

Use 2 quotes or a single quote inside the asp string.

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to WIryeman)
Patti

 

Posts: 125
From: USA
Status: offline

 
RE: Opening new window with frontpage link - 11/2/2003 17:53:08   
:) I knew if I waited long enough spooky would find it.

Patti

(in reply to Spooky)
WIryeman

 

Posts: 14
Joined: 2/27/2003
Status: offline

 
RE: Opening new window with frontpage link - 11/2/2003 17:55:50   
Thank you Spooky

Duh! I guess you get a little rusty on the rules when you only tinker with your code every now and then.

Thanks Again

(in reply to Patti)
Spooky

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
RE: Opening new window with frontpage link - 11/2/2003 17:59:35   
No worries - depends what you need them for.
These are all valid syntax:

<%="<a target=_blank href='" & FP_FieldLink(fp_rs,"URL") & "'>" & FP_FieldVal(fp_rs,"URL") & "</a>"%>
<%="<a target='_blank' href='" & FP_FieldLink(fp_rs,"URL") & "'>" & FP_FieldVal(fp_rs,"URL") & "</a>"%>
<%="<a target=""_blank"" href=""" & FP_FieldLink(fp_rs,"URL") & """>" & FP_FieldVal(fp_rs,"URL") & "</a>"%>
<a target=_blank href="<%=FP_FieldLink(fp_rs,"URL")%>"><%=FP_FieldVal(fp_rs,"URL")%></a>

_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to WIryeman)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Opening new window with frontpage link
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts