Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Making Links open into a new page.

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,28958
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> Making Links open into a new page.
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Making Links open into a new page. - 12/13/2005 4:05:04 AM   
  rich136

 

Posts: 1
Score: 0
Joined: 12/13/2005
Status: offline
All right, so I am very new to ASP and VBScript (like two weeks into it now!)

I used someones script for a calendar but I want the links within the calendar to pop up instead of linking in the same window.

Here is the script right now:

If isEvent = TRUE Then
Response.Write("<a href=""calanderevents.asp?EventDate=" & Server.URLEncode(CurrentDay) & """> "& Day(CurrentDay)& "</a>")
If Not rsEvents.BOF Then
rsEvents.MoveFirst
Do Until rsEvents.EOF
If (rsEvents.Fields.Item("eventDate").Value) = CurrentDay Then
Response.Write("<p><a href=""calanderevents.asp?id=" & (rsEvents.Fields.Item("eventid").Value)& "" > " & (rsEvents.Fields.Item("eventTitle").Value) & "</a></p>") 
End If

I thought, since it seems to write html (the <p> and <a href>, that I could simply add target ="_blank", but it doesn't seem to work.  What do I need to do?

Thank you all for your help!
 
 
Post #: 1
 
 RE: Making Links open into a new page. - 12/13/2005 8:32:05 AM   
  csamuels


Posts: 42
Score: 0
Joined: 9/26/2005
Status: offline
target=_top in the a tag should work

(in reply to rich136)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> Making Links open into a new page. Page: [1]
Jump to:





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