-
1. Re: Javascript to setFocus to nothing (as if none of the fields/buttons on a page have the focus)
Magus069 Oct 23, 2014 7:37 AM (in response to Brian3.14)Hi there, I've tried the function xfa.host.setFocus(); with no parameter and it is working for me...
I've also tried it on the mouseEnter event of a button and it works fine.
-
2. Re: Javascript to setFocus to nothing (as if none of the fields/buttons on a page have the focus)
Brian3.14 Oct 28, 2014 11:14 AM (in response to Brian3.14)Hi Magus,
Thanks for the reply; sorry for the delay -- wanted to construct a working example to post. Link is: Shared Files - Acrobat.com
I'll test the link to make sure it works.
It shows the varying conditions of when the codes xfa.host.setFocus() or xfa.host.setFocus(null) will or will not work WHEN THE CODE IS IN THE MOUSE ENTER EVENT.
There appears to be a correlation between "classname" & "ui.oneOfChild.classname" as to whether or not it will work. For example:
1) code in the mouseEnter event of a text field will:
- NOT clear the focus from another text field, numeric field, or decimal field.
- BUT it WILL clear the focus from a date field, drop down, check box, button and radio group.
I'm a newbie at this still. Wiser minds have any ideas?
Is there really no code to place in the mouseEnter event of all objects (that have a mouseEnter event) to set the focus to null?
BR
-
3. Re: Javascript to setFocus to nothing (as if none of the fields/buttons on a page have the focus)
Brian3.14 Oct 28, 2014 11:15 AM (in response to Magus069)Magus - posted to the full discussion rather than reply directly to you. Sorry!

