navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
FrontPage Alternative
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

Free FrontPage Templates

Search Forums
 

Advanced search
Recent Posts

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

 

How do I make URL' s in text areas become a live 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 >> How do I make URL' s in text areas become a live link?
Page: [1]
 
porsche944

 

Posts: 366
Joined: 3/6/2002
From: Regina Canada
Status: offline

 
How do I make URL' s in text areas become a live link? - 10/9/2002 17:43:33   
Every record in my database has a comments column (text area), some of the comments have a URL in them. How do I make these URL' s become a live link?

< Message edited by porsche944 -- 10/8/2002 6:02:02 PM >


_____________________________

-----------------------
Jason
www.saskads.ca
Spooky

 

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

 
RE: How do I make URL' s in text areas become a live link? - 10/9/2002 23:55:02   
Heres one to try :
http://www.aspemporium.com/aspEmporium/downloads/fileDependsEx.asp?eg=regexp_LinkURLs

_____________________________

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

§þ:)


(in reply to porsche944)
Spooky

 

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

 
RE: How do I make URL' s in text areas become a live link? - 10/11/2002 22:11:59   
Function LinkURLs(text)
Set RE = New RegExp
RE.IgnoreCase = true
RE.Global = True
RE.Pattern = " (http://[^ ]*)"
LinkURLs = RE.Replace(text," <a href=' $1' >$1</a>" )
Set RE = Nothing
End Function

Response.write LinkURLs(" Outfront forums are at http://www.frontpagewebmaster.com!" )

< Message edited by Spooky -- 10/11/2002 3:12:24 PM >


_____________________________

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

§þ:)


(in reply to porsche944)
khiser0001

 

Posts: 162
From: None
Status: offline

 
RE: How do I make URL' s in text areas become a live link? - 11/5/2002 14:42:26   
Spooky,

This works great but what if the field already had a replace for the Chr(10) to <BR>?

How can I combine these? I have tried a few things and will continue to search.

Thanks

(in reply to porsche944)
rdouglass

 

Posts: 9280
From: Biddeford, ME USA
Status: offline

 
RE: How do I make URL' s in text areas become a live link? - 11/6/2002 9:11:06   
Have you tried this:

Response.write Replace(LinkURLs(" Outfront forums are at http://www.frontpagewebmaster.com!" ), CHR(10), " <br>" )

*That' s assuming you' re using the function Spooky defined above...



(in reply to porsche944)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> How do I make URL' s in text areas become a live 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