Jump to content

create links


TobesC

Recommended Posts

inside the text area you can't... unless you use some javascript or something like that. I know I have seen some folks do it in a wysiwyg editor. But for the most part text boxes are only going to display text. You can make it so that a person adds a

[a][/a] 

block around the code they want to be a link and your script replaces those with the proper

<a > and </a>

tags.

 

Otherwise you could parse the whole text area and use a bit of regex to find the text that starts with http:// and ends with a blank space, then set the results in a var and make the var the link.

 

 

I hope this answers your question or at least helps point ya in the right direction. Lemme know if it does not and I will try to help better.

 

nate

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.