469,622 Members | 2,199 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,622 developers. It's quick & easy.

.close not working when window is being moved

I have a small window open that should close after 60 secs...works
fine if the user is not playing with the window. The problem occurs
when the user is moving the window around when the 60 secs is up...I
just hear a 'beep' and the window does not close until the user moves
on to the next page of the tutorial/site. Any insight?

Thanks,
Christine
function Start(page) {
if (!OpenWin){
window.status="";
OpenWin = this.open(page, "CheatSheet",
"toolbar=no,menubar=no,location=no,scrollbars=no,r esize=yes,status=no,width=500,height=270");
self.setTimeout('winClose()', 60000)}
else
OpenWin.focus();
}

function winClose() {
OpenWin.close();
OpenWin=null;
window.status="";
}
Jul 20 '05 #1
2 1261

Christine <wi*********@yahoo.com> wrote in message
news:26*************************@posting.google.co m...
I have a small window open that should close after 60 secs...works
fine if the user is not playing with the window. The problem occurs
when the user is moving the window around when the 60 secs is up...I
just hear a 'beep' and the window does not close until the user moves
on to the next page of the tutorial/site. Any insight?

Thanks,
Christine
function Start(page) {
if (!OpenWin){
window.status="";
OpenWin = this.open(page, "CheatSheet",
"toolbar=no,menubar=no,location=no,scrollbars=no,r esize=yes,status=no,width=
500,height=270"); self.setTimeout('winClose()', 60000)}
else
OpenWin.focus();
}

function winClose() {
OpenWin.close();
OpenWin=null;
window.status="";
}


Hi,
novice tester observes that with the necessary
var OpenWin;
in the script section, and using IE6,
the functionality performed as expected
1) when Start("index.htm"); was called in the script section
2) when onload was used to call Start as part of the body tag.
Didn't seen to matter if the new window had focus or not, was moving or
not....

More details might help ?! (browser, other functionality...)

Chris

Jul 20 '05 #2
Hi Chris,
Just to clarify - I'm gathering that you tested the code I
posted...the problem isn't a matter of where the 'focus' is per se.
If the user is actively moving the small window (mouse button
depressed while on the new window), this is when the problem occurs.
I'm encountering this problem in IE 6, and the script is called when
the user clicks on a link that appears in the parent window.

Thanks,
Christine

"Chris Crandell" <cc******@ix.netcom.com> wrote in message news:<O8*****************@newsread1.news.pas.earth link.net>...
Christine <wi*********@yahoo.com> wrote in message
news:26*************************@posting.google.co m...
I have a small window open that should close after 60 secs...works
fine if the user is not playing with the window. The problem occurs
when the user is moving the window around when the 60 secs is up...I
just hear a 'beep' and the window does not close until the user moves
on to the next page of the tutorial/site. Any insight?

Thanks,
Christine
function Start(page) {
if (!OpenWin){
window.status="";
OpenWin = this.open(page, "CheatSheet",

"toolbar=no,menubar=no,location=no,scrollbars=no,r esize=yes,status=no,width=
500,height=270");
self.setTimeout('winClose()', 60000)}
else
OpenWin.focus();
}

function winClose() {
OpenWin.close();
OpenWin=null;
window.status="";
}


Hi,
novice tester observes that with the necessary
var OpenWin;
in the script section, and using IE6,
the functionality performed as expected
1) when Start("index.htm"); was called in the script section
2) when onload was used to call Start as part of the body tag.
Didn't seen to matter if the new window had focus or not, was moving or
not....

More details might help ?! (browser, other functionality...)

Chris

Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Asit | last post: by
1 post views Thread by Marshall Dudley | last post: by
5 posts views Thread by lindanr | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.