473,386 Members | 1,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

.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 1347

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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: J P Singh | last post by:
Hi Guys Wonder if someone can help me with this. I have a form where a user clicks a button which gives them a pop up windows to allow them to add the data. The user adds the data and click...
3
by: Asit | last post by:
<META HTTP-EQUIV="expires" content="0"> <META HTTP-EQUIV="pragma" content="no-cache"> <html> <head> <title>Fidelity NetBenefits</title> </head> <body BGCOLOR="#ffffff"> <script...
1
by: Marshall Dudley | last post by:
I have an application where in a shopping cart checkout a popup appears which suggests other items that may go with what was ordered with a button to add these items to the cart. When the button...
4
by: GrantS | last post by:
I am having a problem closing a popup window opened modally. When I try to close the window (when the user hits save button and the data has been processed), the Popup window opens as a full screen...
14
by: Paul | last post by:
Hi I have 2 functions in java script, one opens a second window-this works, the other is supposed to close this second window, does not seem to be working. Just wondering if anyone had any ideas....
2
by: David | last post by:
I'm opening a cmd window to run an ftp process. It's easy enough to close the process (.close()), but the cmd window won't close unless I go out to the window and type 'quit'. How can I send a...
3
by: Ashhad Syed | last post by:
I have turned on smartnavigation=True for some of the forms in my .NET application. It seemed to be working fine on Windows 2000 SP4, which also has VS 2003 installted, but when I moved the...
5
by: lindanr | last post by:
In ASP.NET 2005 I have an onblur="window.close()" javascript event in the <body> tag. When I click on the window's scrollbar, the window closes. The same code works fine in ASP.NET 2003. Any...
1
by: nebulus | last post by:
I'm working on a web app that under normal circumstances will be happy with the Session_OnEnd event, but when a user leaves a page by closing the browser by either Alt+F4 or just hitting the "X",...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.