Solved

Add a link to a textarea

Posted on 2011-02-13
6
568 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

 
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 500 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Glitching Slide Show 19 40
javascript delete path 7 45
How to size popup in jquery mobile 4 63
How can I do this in Angular, instead of jQuery? 2 23
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This article discusses how to create an extensible mechanism for linked drop downs.
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…

751 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