.close not working when window is being moved

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Christine

    #1

    .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,men ubar=no,locatio n=no,scrollbars =no,resize=yes, status=no,width =500,height=270 ");
    self.setTimeout ('winClose()', 60000)}
    else
    OpenWin.focus() ;
    }

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

    #2
    Re: .close not working when window is being moved


    Christine <wilson_work@ya hoo.com> wrote in message
    news:26c240b.04 02181233.708325 51@posting.goog le.com...[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,men ubar=no,locatio n=no,scrollbars =no,resize=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.ht m"); 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



    Comment

    • Christine

      #3
      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.ne tcom.com> wrote in message news:<O8RYb.926 3$tL3.2623@news read1.news.pas. earthlink.net>. ..[color=blue]
      > Christine <wilson_work@ya hoo.com> wrote in message
      > news:26c240b.04 02181233.708325 51@posting.goog le.com...[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,men ubar=no,locatio n=no,scrollbars =no,resize=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.ht m"); 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]

      Comment

      Working...