Click here to Skip to main content
15,900,589 members
Home / Discussions / Web Development
   

Web Development

 
Generalcount Visitor without global.asa Pin
TrungHuynh22-Sep-04 17:17
TrungHuynh22-Sep-04 17:17 
General30 day anniversary of this problem (:-() Pin
Asif Rehman22-Sep-04 3:22
Asif Rehman22-Sep-04 3:22 
Generalinsert text at cursor location -- TextArea Pin
devvvy20-Sep-04 21:30
devvvy20-Sep-04 21:30 
GeneralWebBrowser Control -- display string Pin
main@i-c.com.ua20-Sep-04 13:02
main@i-c.com.ua20-Sep-04 13:02 
Generalloading a bitmap in ASP Pin
DMurray20-Sep-04 9:00
DMurray20-Sep-04 9:00 
GeneralCertificates and WebServices Pin
species_84_7220-Sep-04 1:11
species_84_7220-Sep-04 1:11 
Questionhow can i convert from local connection into server conn ? Pin
19-Sep-04 23:01
suss19-Sep-04 23:01 
GeneralFormat file Excel ! Pin
Nguyen Van Vinh17-Sep-04 23:00
Nguyen Van Vinh17-Sep-04 23:00 
GeneralRe: Format file Excel ! Pin
Chris Quick24-Sep-04 11:08
Chris Quick24-Sep-04 11:08 
GeneralHide columns was maked by autoGenerateColums="true". Help me ! Pin
Nguyen Van Vinh17-Sep-04 17:59
Nguyen Van Vinh17-Sep-04 17:59 
GeneralRe: Hide columns was maked by autoGenerateColums="true". Help me ! Pin
yiyanxiyin19-Sep-04 15:42
yiyanxiyin19-Sep-04 15:42 
Generalto Yiyanxiyin ! Pin
20-Sep-04 23:31
suss20-Sep-04 23:31 
Generalintranet search Pin
khowlett17-Sep-04 14:41
khowlett17-Sep-04 14:41 
QuestionHow do I share an instance of class between multiple calls to a Webservice? Pin
Paul Evans17-Sep-04 7:10
Paul Evans17-Sep-04 7:10 
AnswerRe: How do I share an instance of class between multiple calls to a Webservice? Pin
Paul Evans17-Sep-04 7:12
Paul Evans17-Sep-04 7:12 
Generalreplace [url]whatever[/url] .. Pin
Larry Antram16-Sep-04 21:27
Larry Antram16-Sep-04 21:27 
GeneralRe: replace [url]whatever[/url] .. Pin
Jon Sagara16-Sep-04 23:39
Jon Sagara16-Sep-04 23:39 
GeneralRe: replace [url]whatever[/url] .. Pin
Larry Antram17-Sep-04 0:15
Larry Antram17-Sep-04 0:15 
No, it's standard JScript embedded in an ASP page (IIS5).. all server side.

Basically I have a discussion forum, which doesn't allow HTML, and I would like either:

(A) any links posted by the users to either appear automatically (e.g. some sort magic regular expression for "http:// + whatever + whitespace" replaces the text with a standard html link), -or-

(B) as an alternative, some sort of regular expression type search for "[url] + site.com + [/url]" and replace that with a standard html type link.

I found the following code on a site:

<a href="http://codelib.aspemporium.com/index.aspx?pid=110&cid=3">http://codelib.aspemporium.com/index.aspx?pid=110&cid=3</a>[<a href="http://codelib.aspemporium.com/index.aspx?pid=110&cid=3" target="_blank" title="New Window">^</a>]

Which looks to perform (A) above... however in converting the VBScript to server-side JScript I can't get the following line to work... this is my translation...

strOut = re.replace( strIn, "<A HREF=\"$1\">$1</A>" );

I assume the line about, the {1} is supposed to carry down into the $1 in this one in some fashion, but I don't quite understand how it works... and I can't seem to get it to work.

Any ideas? Simply finding a URL in any particular JScript String, and replacing it with an HREF is really all I need to do. Thanks for any help!
GeneralRe: replace [url]whatever[/url] .. Pin
Jon Sagara17-Sep-04 0:18
Jon Sagara17-Sep-04 0:18 
GeneralRe: replace [url]whatever[/url] .. Pin
Larry Antram17-Sep-04 0:27
Larry Antram17-Sep-04 0:27 
GeneralRe: replace [url]whatever[/url] .. Pin
Jon Sagara17-Sep-04 0:30
Jon Sagara17-Sep-04 0:30 
QuestionHow to ... in Crystal Report 9? Pin
HyVong16-Sep-04 12:29
HyVong16-Sep-04 12:29 
GeneralExcel loader to asp Pin
steve75916-Sep-04 7:28
steve75916-Sep-04 7:28 
GeneralProblems in user control name after installing .NetFramework 1.0 sp1 Pin
GanesanM16-Sep-04 5:01
GanesanM16-Sep-04 5:01 
GeneralSynchronization between two web pages asp 3 Pin
jackboy7016-Sep-04 4:15
jackboy7016-Sep-04 4:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.