Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Current Version (Old)
 Java URLEncode in Function Edit_hrefs
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

ahugedeal
Starting Member

20 Posts

Posted - 31 May 2001 :  22:51:34  Show Profile  Visit ahugedeal's Homepage
In the Function edit_hrefs in the inc_functions.asp file, I need to have something similar to the asp command server.urlencode to encode that actual hyperlink and not the text for the hyperlink in the following line:

s_str = s_str.replace(/\b(http\:\/\/[\w+\.]+[\w+\.\:\/\_\?\=\&\-\'\#\%\~\;\,\$\!\+\*]+)/gi,
"<a href=\$1\ target=\"_blank\">$1<\/a>");

Any ideas on how I might go about doing this?

I originally posted this in a topic called Jet Error, which was not a correct title Forum Link, so I wanted to repost it using a correct title and maybe get a little help

Thanks!
Terry

http://www.ahugedeal.com

ahugedeal
Starting Member

20 Posts

Posted - 06 June 2001 :  21:42:03  Show Profile  Visit ahugedeal's Homepage
Any suggestions???

http://www.ahugedeal.com
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 07 June 2001 :  03:29:19  Show Profile
I think it's 'escape' in Javascript, but I'm not an expert. Check the jscript docs at www.microsoft.com/scripting/

======
Doug G
======
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07