  | |  | Removing carriage returns | Removing carriage returns
2004-02-19 - By Lehr, Theodore M
Back I have an issue - I am using the following code:
Cobj = {};
Cobj.owner=this;
Cobj.onKeyDown = function() {
if (Key.getCode() == Key.ENTER) {
this.owner.send_btn.executeCallBack();
}
}
Key.addListener(Cobj);
This is in conjunction with Flash Comm but it is a code issue I think....
When I click ENTER it sends the text and clears the textfield but it leaves a carriage return... How can I make sure the text field does not have a carriage return in it?? Do I need a whole new functional process?
Ted
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Supported by Fig Leaf Software
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
Be sure to check the archives and the wiki:
http://chattyfig.figleaf.com/
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:104761
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
To unsubscribe send a blank e-mail to:
Normal Mode: flashcoders-unsubscribe@(protected)
Digest Mode: flashcoders-digest-unsubscrive@(protected)
|
|
 |