Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Add a link to a textarea

Posted on 2011-02-13
6
Medium Priority
?
572 Views
Last Modified: 2012-05-11
Hi,
I have a textarea (tiny-mce).
I want to a link to the textarea, so when the user clicks on it (in the textarea) it will invoke my javascript function (or any other URL).
0
Comment
Question by:VapiSoft
6 Comments
 
LVL 39

Expert Comment

by:Aaron Tomosky
ID: 34883011
The txt area has an onclick() event.
0
 

Author Comment

by:VapiSoft
ID: 34883040
I don't want to get a click anywhere, I want to see a link (blue with underline and a hand when the cursor on it), and that when I click on it, it will go to the url (just like reguar link).
Currently, I add the '<a href="...">text</a>'
It shows the link (blue with underline), but when I put the cursor on it it does not show the hand, and the click does not do anything.
0
 

Author Comment

by:VapiSoft
ID: 34883059
See the picture.
ScreenShot-4737.jpg
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 34883099
Would that not be very annoying since you would then not be able to edit it.
0
 
LVL 16

Accepted Solution

by:
BurnieP earned 2000 total points
ID: 34883126
Hi,

What control are you using?  You do not seem to be using the <textarea></textarea> control.  I tried adding an a href inside a textarea control and it will not render as a link.  In your picture I can see some kind of custom control.

Also, maybe you can try putting the events directly in the a href.  
Example :
<a href="..." onmouseover="this.style.cursor='pointer'" onmouseout="this.style.cursor='default'" onclick="window.open('google.com')">Click to upgrade Chrome</a>

This is a blinded guess.
0
 

Author Closing Comment

by:VapiSoft
ID: 34883207
It works.
Thanks.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

879 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question