• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

javascript: onblur() problem in IE 6

I'm having a problem with onBlur() in IE 6. It works fine in Mozilla, but not in IE 6 (not sure about other versions of IE).

This window is opened by another window. I want this window (the child window) to close when it loses focus.
It does close when it loses focus. Unfortunately, it seems to think that it has lost focus when you click on an input box in the window. How can I guard against this?

Here's my page:

test page

Thanks in advance.
 
I think I figured it out. Thanks in part to this page:
http://www.faqts.com/knowledge_base/view.phtml/aid/19000/fid/53

Basically here's the deal:
IE is stupid (we all knew this already).
If you're in a window and you click inside a table or a form, IE thinks that the window has lost focus, so here's what I did...
I made a var called okToClose and I set it to true.
then I put the code: onmouseover='okToClose=false' onmouseout='okToClose=true'
in the form elements and in the table.

This solution is less than ideal -- if you get to the form by tabbing to it, the window will still close itself. Better solutions are welcomed!
 
Back
Top