|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Hi!
Is there a way to format text entered in a textbox? I'd like to implement some kind of form with text editor functions like buttons for "bold", "italic", ... to be able to highlight important parts of the text entered. And, most important, it has to work in IE AND in Netscape... Any ideas? Thanx, someone |
|
#2
|
||||
|
||||
|
This would be better with java, probably. the text box just shows plain text, you can't do anything with it. you could implement some kind of ubb similar code like here on devshed use [] codes. you could possibly have it interactive a little with javascript. the user highlights a word, pushes a B button, and the javascript adds the <b> tags? i don't think this is what you're after though....
---John Holmes... |
|
#3
|
|||
|
|||
|
The problem is that as far as I know you can't get the cursor position in a textbox, nor the position of any highlighted text with JavaScript. With JavaScript you can only add text at the beginning or at the end of the text, not somewhere in between.
Ciao, someone |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > Formatting text in textbox ?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|