[ascoders] setTextFormat/setNewTextFormat(???)
- From: Timo Hölzer <t.hoelzer@xxxxxxxxx>
- To: <ascoders@xxxxxxxxxxxxx>
- Date: Wed, 4 Feb 2004 10:56:11 +0100
Hallo Liste
Ich hab' da irgendwie ein Problem mit setTextFormat/setNewTextFormat (???)
Die folegenden Funktionen nutze ich in einem Formular, um fehlerhaft
gefüllte
TextFelder zu "highlighten" bzw. nach erfolgreicher Korrektur den highlight
zu entfernen.
Das highlighten funktioniert soweit, außer wenn in das übergebene TextFeld
kein Text eingegeben wurde.
highlight = function(field){
var tf = new TextFormat()
tf.bold = true
tf.color = 0xFFFFFF
field.background = true
field.backgroundColor = 0xCC3366
field.setTextFormat(tf)
}
removeHighlight = function(field){
var tf = new TextFormat()
tf.color = 0x000000
tf.bold = false
field.background = true
field.backgroundColor = 0xFFFFFF
field.setTextFormat(tf)
}
any ideas?
Gruß aus Mainz
Timo H.
------------------------------------------------------
Archiv : http://www.freelists.org/archives/ascoders/
Optionen : http://www.freelists.org/list/ascoders
------------------------------------------------------
- Follow-Ups:
- [ascoders] AW: setTextFormat/setNewTextFormat(???)
- From: Timo Hölzer
- [ascoders] Re: setTextFormat/setNewTextFormat(???)
- From: Michael Kneib
Other related posts:
- » [ascoders] setTextFormat/setNewTextFormat(???)
- » [ascoders] Re: setTextFormat/setNewTextFormat(???)
- [ascoders] AW: setTextFormat/setNewTextFormat(???)
- From: Timo Hölzer
- [ascoders] Re: setTextFormat/setNewTextFormat(???)
- From: Michael Kneib