
September 28th, 2000, 06:34 PM
|
|
Contributing User
|
|
Join Date: Dec 2002
Posts: 14,575
  
Time spent in forums: < 1 sec
Reputation Power: 23
|
|
|
<i><b>Originally posted by : Adam Stevenson (alstevenson@nadev.com)</b></i><br /><br />The only way I know of doing this is to pull the selected text from the textarea and add tags around it. This can be done by javascript. What you really need to do is have three sets of text. The first one is the source and is formatted with html. This text will be needed to stay in a buffer in memory. <br /><br />The second will be the text in the textarea, which will be plain text without HTML tags. When you make a change to the text area, it will reflect a change in teh source not, the textarea.<br /><br />The third will be will be a display area to the left, right, top, bottom of the textarea, which will show what the text will look like before it is loaded. <br /><br />You might look into using activex controls and iframes to do this operation without the code. <br /><br />Hope this helps!<br /><br />Adam<br /><br />------------<br />kyoung at 9/28/2000 2:00:26 PM<br /><br />I want to make text in a textarea a hyperlink by highlighting the text, click a button and it will add the proper HTML tags so that someone who does not know HTML can add it. The info in the textarea will be submitted to a db and when it is taken out of the db it will be formatted as a hyperlink. I have looked all over the MS site and everywhere else, active x maybe?? Any ideas????????<br />
|