I would like to mark up the text in a textbox (in the case of an error)
( so that the text has got a blue layer...)
This way the user could directly retype the value without having to
delete it...
thx,
Christine
Oliver Wong - 07 Jun 2006 17:33 GMT
>I would like to mark up the text in a textbox (in the case of an error)
> ( so that the text has got a blue layer...)
> This way the user could directly retype the value without having to
> delete it...
If by "textbox", you mean "textarea", that's not possible. The HTML
Textarea element contains pure, plain, uninterpreted text. Tools like
FckEditor (http://www.fckeditor.net/demo/default.html) use a combination of
JavaScript and IFRAME to fake something that looks like a textarea, but a
lot of the functionality (like the ability to edit text) had to be
reimplemented from scratch.
- Oliver
Bart Rider - 07 Jun 2006 17:44 GMT
> I would like to mark up the text in a textbox (in the case of an error)
> ( so that the text has got a blue layer...)
[quoted text clipped - 4 lines]
>
> Christine
feel free to do so :)
-
-
-
-
-
-
-
-
-
lol, sry for that stupid answer. just came from c.l.c news group
and thats what they always answer, if they find a post without
any real question in it.
As to adress, what you would like to do:
use select(int, int), setSelectionEnd, setSelectionStart from
class TextComponent (TextField, TextArea), if you deal with awt
components, or from class JTextComoponent (JTextField, JTextArea)
for swing.
Best regards,
Bart