RE: Auto conversion of URLs?

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 17281
interpreted = N
texte = I just submitted a JavaScript a few minutes ago to this list that can search in a form for strings and then replace. You could modify that so that upon submission you get the required results.Aloha, Olin> -----Original Message----- > From: Kenneth Grome [mailto:ken@webdna.net] > Sent: Saturday, April 25, 1998 12:15 PM > To: WebDNA-Talk@smithmicro.com > Subject: Re: Auto conversion of URLs? > > > >Has anyone tackled the problem of trapping URL strings in a body of text > >and automatically adding the > > and [url] wrappers so that that when the text is displayed the > >URL is clickable? What I'd like to accomplish is the following: > > > >User types: > >blah blah http://www.yahoo.com blah blah > > > >Database recieves: > >blah blah >HREF=[url]http://www.yahoo.com[/url]>http://www.yahoo.com blah blah > > > >Any thoughts on how to accomplish this? > > > WebCatalog's current text searching and text manipulation > capabilities are nowhere near the level of sophistication > required to do this from within WebCatalog itself -- unless you > want to write a HUGE amount of ridiculously complicated code that > would take forever to run -- and even then I'm not convinced that > it would actually work (although it probably would, since > everything else seems to work amazingly well with WebCatalog). > > Right now, WebCatalog offers no way to find and replace more than > a single character at one time. In addition, wild cards are > non-existent. This basically means you cannot even identify a > string that begins with http:// or know where to find the end of > that string -- because the tools just aren't there. > > The best thing I can suggest right now is to write an AppleScript > that performs the magic you need, then feed your field or form > data thru that script to turn those strings into URLs. > > Or do it manually. :( > > Sincerely, > Ken Grome > 808-737-6499 > WebDNA Solutions > mailto:ken@webdna.net > http://www.webdna.net > > > Associated Messages, from the most recent to the oldest:

    
  1. RE: Auto conversion of URLs? (Olin 1998)
  2. Re: Auto conversion of URLs? (Kenneth Grome 1998)
I just submitted a JavaScript a few minutes ago to this list that can search in a form for strings and then replace. You could modify that so that upon submission you get the required results.Aloha, Olin> -----Original Message----- > From: Kenneth Grome [mailto:ken@webdna.net] > Sent: Saturday, April 25, 1998 12:15 PM > To: WebDNA-Talk@smithmicro.com > Subject: Re: Auto conversion of URLs? > > > >Has anyone tackled the problem of trapping URL strings in a body of text > >and automatically adding the > > and [url] wrappers so that that when the text is displayed the > >URL is clickable? What I'd like to accomplish is the following: > > > >User types: > >blah blah http://www.yahoo.com blah blah > > > >Database recieves: > >blah blah >HREF=[url]http://www.yahoo.com[/url]>http://www.yahoo.com blah blah > > > >Any thoughts on how to accomplish this? > > > WebCatalog's current text searching and text manipulation > capabilities are nowhere near the level of sophistication > required to do this from within WebCatalog itself -- unless you > want to write a HUGE amount of ridiculously complicated code that > would take forever to run -- and even then I'm not convinced that > it would actually work (although it probably would, since > everything else seems to work amazingly well with WebCatalog). > > Right now, WebCatalog offers no way to find and replace more than > a single character at one time. In addition, wild cards are > non-existent. This basically means you cannot even identify a > string that begins with http:// or know where to find the end of > that string -- because the tools just aren't there. > > The best thing I can suggest right now is to write an AppleScript > that performs the magic you need, then feed your field or form > data thru that script to turn those strings into URLs. > > Or do it manually. :( > > Sincerely, > Ken Grome > 808-737-6499 > WebDNA Solutions > mailto:ken@webdna.net > http://www.webdna.net > > > Olin

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Using Plug-In while running 1.6.1 (1997) catagories (1997) all records returned. (1997) Count regular expressions in a file (2007) WebCat2 Append problem (B14Macacgi) (1997) Semi-OT SSL IE problem (2005) [WebDNA] Emailer & SMTP (2009) Where is the linux 4.02b5 FTP download located? (2000) [WriteFile] problems (1997) WebCat2b13MacPlugin - nested [xxx] contexts (1997) UPPERCASE (1997) credit card (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) [searchString] (1997) [WebDNA] Payeezy FirstData (2019) [WebDNA] CICADA (2009) WebDNA and SSI (2004) calculate age (2003) Email Format (Umlaut) (2004) Installing Web DNA 5.1 on a MAC (2004)