Hi,
I'm getting an "Access is denied" error in IE when I try to focus an
input box with node.focus()
My understanding is that should only happen when the domains are
different of the Javascript and the element that its trying to focus.
It might be cross-frame, but everything comes from the same domain.
The oddest part about this is that even though I get the "Access is
denied" error, the textbox actually does focus. Perhaps odder still,
it seems to not happen if I put an alert() immediately before the
focus(). Perhaps it has something to do with the page having lost
focus when focus() is called?
Very strange behavior and, as usual, IE is basically no help in
isolating what the problem is.
Thanks for any help.
-Jeff
I'm getting an "Access is denied" error in IE when I try to focus an
input box with node.focus()
My understanding is that should only happen when the domains are
different of the Javascript and the element that its trying to focus.
It might be cross-frame, but everything comes from the same domain.
The oddest part about this is that even though I get the "Access is
denied" error, the textbox actually does focus. Perhaps odder still,
it seems to not happen if I put an alert() immediately before the
focus(). Perhaps it has something to do with the page having lost
focus when focus() is called?
Very strange behavior and, as usual, IE is basically no help in
isolating what the problem is.
Thanks for any help.
-Jeff
Comment