The first part is simple... you want to capture highlighted text:
A search on google returns many results which contain your answer;
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=javascript+copy+highl
ighted+text


All you have to do is modify the code to include the html for a
hyperlink before returning the output.


Wil Moore III, MCP                          www.mdsww.com
Senior Programmer, Internet Consultant   626.786.0050 (c)
=========================================================
If the automobile had followed the same development cycle
as the computer, a Rolls-Royce today would cost $100, get
a million miles to the gallon, and explode once every few
weeks, killing everyone inside

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Malik
Rayhan
Sent: Sunday, August 18, 2002 10:43 AM
To: [EMAIL PROTECTED]
Subject: Create Hyperlink


Folks,

I have a small web application where people can enter in text into a text
field.  How can I add some sort of functionality whereby the individual can
highlight some text, and on-click of a button, create a hyperlink out of it.
Will I require the use of a tag library?  Your help would be much
appreaciated.

Thanks.

Rayhan A. Malik
* mailto:[EMAIL PROTECTED]

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to