View Full Version : inputtext focus loss
epopov
10-31-2003, 12:04 AM
Hi,
I have inputtext object in my application and I want to make some action when my inputtext will lose focus.
How can I perform this? Can you give me some examples?
antun
10-31-2003, 08:15 AM
There is an onblur event:
<canvas debug="true">
<inputtext onfocus="debug.write('I got focus')"
onblur="debug.write('I lost focus')" />
</canvas>
The following should work too:
<canvas debug="true">
<inputtext>
<method event="onblur">
debug.write('I lost focus');
</method>
</inputtext>
</canvas>
In genereal the second method is always available, whereas in some cases the event handler (i.e. the onblur attribute in this case) is not always defined.
Take care,
Antun
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.