on 01-24-2006 10:05 AM
I am disabling a field on a form, which works fine most of the time but occassionaly will throw an error saying that it cannot commit the action as the item is in focus.
Is there a way I can detect which item on the form has focus before I try and disable my field?
Hi Darren,
I am not too sure whether you can find out which input element is in focus, but for your case I can suggest a workaround.
What you can do is, set the focus away from this field you are disabling, and then try disabling this field. For setting other fields in focus, you can use the requestFocus() mehtod.
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.