Struts - Markup text in textbbox

  • Thread starter Christine Mayer
  • Start date
C

Christine Mayer

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
 
O

Oliver Wong

Christine Mayer said:
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
 
B

Bart Rider

Christine said:
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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top