SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseSQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old September 28th, 2000, 05:00 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 23
Making text in a text area a hyperlink by highlighting...

<i><b>Originally posted by : kyoung (k_young2000@hotmail.com)</b></i><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 />

Reply With Quote
  #2  
Old September 28th, 2000, 06:34 PM
Steve Schofield Steve Schofield is offline
Contributing User
ASP Free God 20th Plane (14500 - 14999 posts)
 
Join Date: Dec 2002
Posts: 14,575 Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level)Steve Schofield User rank is Corporal (100 - 500 Reputation Level) 
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 />

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseSQL Development > Making text in a text area a hyperlink by highlighting...


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT