Hi All,
I've got a strange problem in IE that I wonder if anyone has seen
before. Basically, I've got a two window scenario. The parent window
opens the child via window.open(). The child contains a form and
submissions are processed in the child window. When the child window
form is submitted and the results are returned, an alert box is thrown
up via setTimeout("alert(....)", 2000). For some odd reason, when
this alert is displayed, focus is transferred back to the parent
window with the alert box on top. When you press the OK button on the
alert, focus is transferred back to where it should be; on the child
window. This doesn't happen all the time. But it happens. Is there
something I can do to solve this mystery?
Thanks. 2 2288 rn****@cudbytech.net (Robert Nurse) wrote in message news:<a9**************************@posting.google. com>... Hi All,
I've got a strange problem in IE that I wonder if anyone has seen before. Basically, I've got a two window scenario. The parent window opens the child via window.open(). The child contains a form and submissions are processed in the child window. When the child window form is submitted and the results are returned, an alert box is thrown up via setTimeout("alert(....)", 2000).
I'd expect this if the alert was coming from the parent window.
For some odd reason, when this alert is displayed, focus is transferred back to the parent window with the alert box on top. When you press the OK button on the alert, focus is transferred back to where it should be; on the child window. This doesn't happen all the time. But it happens. Is there something I can do to solve this mystery?
Why don't you eliminate the alert and unhide some text in the window
you want a message to appear? Thanks.
Robert+
Hi,
I found the problem. When you submit the form on the child, the
parent was getting refreshed. During this refresh, JS on the parent
was running: trying to place focus on an edit control. Therefore,
focus got transferred to the parent window as well. I took care of
this. rc*******@my-deja.com (Robert) wrote in message news:<c6*************************@posting.google.c om>... rn****@cudbytech.net (Robert Nurse) wrote in message news:<a9**************************@posting.google. com>... Hi All,
I've got a strange problem in IE that I wonder if anyone has seen before. Basically, I've got a two window scenario. The parent window opens the child via window.open(). The child contains a form and submissions are processed in the child window. When the child window form is submitted and the results are returned, an alert box is thrown up via setTimeout("alert(....)", 2000).
I'd expect this if the alert was coming from the parent window.
For some odd reason, when this alert is displayed, focus is transferred back to the parent window with the alert box on top. When you press the OK button on the alert, focus is transferred back to where it should be; on the child window. This doesn't happen all the time. But it happens. Is there something I can do to solve this mystery?
Why don't you eliminate the alert and unhide some text in the window you want a message to appear? Thanks.
Robert+ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Justin Koivisto |
last post by:
Is there a way to create an alert-like message box that uses a custom
image? Basically, I want to replace the default ! image with something else.
--
Justin Koivisto - spam@koivi.com
PHP...
|
by: Ian Shere |
last post by:
I'm pretty green when it comes to web design and worse regarding JS - I'm a
true cut n paste hacker and good at that!! LOL
Two questions. I have a bunch of FAQ's as text questions that I want to...
|
by: Barry Svee |
last post by:
I'm struggling with the JavaScript blur event. I have an activex
control that I need to interact with when a window loses focus, namely
to instruct it to give up control of a barcode scanner so...
|
by: Tavish Muldoon |
last post by:
Hello,
I have same Javascript that performs a little quiz after choose
selections from radio buttons. It displays the number of answer that
one got right. But it puts them in an alert box - I...
|
by: Colin Graham |
last post by:
Hi there,
i want to create a piece of javascript that checks to see if a popup
window is open when the user clicks on the main form. If the popup is
open it will set focus back to the popup and...
| |
by: Alistair Saldanha |
last post by:
I'm looking for the event that is fired by Internet Explorer to an "alert":
<SCRIPT>
Alert("You already have a session open")
</SCRIPT>
The event would be webBrowser.Document.????
Much...
|
by: Alex Calder |
last post by:
How's that for a subject line? :)
OK, here's the deal.
I have a web page that features a Flash movie about halfway down the
page, and inside that Flash movie is content that typically...
|
by: Michael |
last post by:
can anyone explain why I get an endless loop of alerts (alert - hit enter -
alert - hit enter etc) from the following script/page?
It works ok in IE, and works ok in FF if I use the mouse to click...
|
by: Jeremy J Starcher |
last post by:
While reading c.l.j, I've noticed that some people prefer and indeed even
recommend the use of "window.alert()" over "alert()".
I can't find any technical reason to make this distinction, and...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |