Here's an annoying problem for you all.
I've got a fullscreen IE window launching a second window (automatically in fullscreen it seems). I need that second window to stay on top until the user fills in the form and submits it.
The first page has an onload event which checks whether the second window needs to be opened (this is in asp, so if a session variable called "evaluation_required" doesn't exist, then the javascript code isn't written). This then launches the new window.
The new window has an onblur event so that if the user uses alt-tab to go back to the opener, it will automatically give itself focus again, meaning they can't go back without closing the window (where there is also an onunload event to reload the original page). However, when I click into a textarea in the form, the page thinks its lost focus and takes the focus back from the textarea.
Stupidly, I then put an additional line of code into the onblur event to focus on the text area, but that crashed IE. I can now see why, because the page tries to get focus, then loses focus when it gives it to the textarea, at which point the onblur event kicks in again and goes into a continuous loop (at least I'm not sending emails this time, have sent 3000 emails in an infinite loop once, killed our email server
).
Can anyone advise me on what I could do to keep the focus on the evaluation form, but still allow focus on the textarea? I tried using a modal window, but had trouble submitting forms in that where it kept submitting to a new window.
I've got a fullscreen IE window launching a second window (automatically in fullscreen it seems). I need that second window to stay on top until the user fills in the form and submits it.
The first page has an onload event which checks whether the second window needs to be opened (this is in asp, so if a session variable called "evaluation_required" doesn't exist, then the javascript code isn't written). This then launches the new window.
The new window has an onblur event so that if the user uses alt-tab to go back to the opener, it will automatically give itself focus again, meaning they can't go back without closing the window (where there is also an onunload event to reload the original page). However, when I click into a textarea in the form, the page thinks its lost focus and takes the focus back from the textarea.
Stupidly, I then put an additional line of code into the onblur event to focus on the text area, but that crashed IE. I can now see why, because the page tries to get focus, then loses focus when it gives it to the textarea, at which point the onblur event kicks in again and goes into a continuous loop (at least I'm not sending emails this time, have sent 3000 emails in an infinite loop once, killed our email server
Can anyone advise me on what I could do to keep the focus on the evaluation form, but still allow focus on the textarea? I tried using a modal window, but had trouble submitting forms in that where it kept submitting to a new window.