.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="";
} | | | | re: .close not working when window is being moved
Christine <wilson_work@yahoo.com> wrote in message
news:26c240b.0402181233.70832551@posting.google.co m...[color=blue]
> 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",
>[/color]
"toolbar=no,menubar=no,location=no,scrollbars=no,r esize=yes,status=no,width=
500,height=270");[color=blue]
> self.setTimeout('winClose()', 60000)}
> else
> OpenWin.focus();
> }
>
> function winClose() {
> OpenWin.close();
> OpenWin=null;
> window.status="";
> }[/color]
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 | | | | re: .close not working when window is being moved
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" <ccrandel@ix.netcom.com> wrote in message news:<O8RYb.9263$tL3.2623@newsread1.news.pas.earth link.net>...[color=blue]
> Christine <wilson_work@yahoo.com> wrote in message
> news:26c240b.0402181233.70832551@posting.google.co m...[color=green]
> > 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",
> >[/color]
> "toolbar=no,menubar=no,location=no,scrollbars=no,r esize=yes,status=no,width=
> 500,height=270");[color=green]
> > self.setTimeout('winClose()', 60000)}
> > else
> > OpenWin.focus();
> > }
> >
> > function winClose() {
> > OpenWin.close();
> > OpenWin=null;
> > window.status="";
> > }[/color]
>
> 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[/color] |  | Similar JavaScript / Ajax / DHTML bytes | | | /bytes/about
We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights.
Get the best answers to your questions from over 226,295 network members.
|