473,698 Members | 2,841 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.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=" ";
}
Jul 20 '05 #1
2 1352

Christine <wi*********@ya hoo.com> wrote in message
news:26******** *************** **@posting.goog le.com...
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=" ";
}


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

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.ne tcom.com> wrote in message news:<O8******* **********@news read1.news.pas. earthlink.net>. ..
Christine <wi*********@ya hoo.com> wrote in message
news:26******** *************** **@posting.goog le.com...
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=" ";
}


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

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5176
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 save. The pop window closes and refreshs the parent window to allow the entered data to be displayed. It was all working okay until couple of days back when it stopped.
3
1970
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 LANGUAGE="JavaScript">
1
3741
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 in the popup is clicked, the popup should present an added items to cart message, close, and reload the parent window, so the parent will show the new item in the cart. It is all working except the post contents for the parent window are being...
4
34867
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 as a new window. The original window plus the Modally opened Pop remain in a separate window. What I want to do is close the popup and return to the original window with its view state maintained. The control use to fire the popup window...
14
2773
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. Here is the code, the functions are <script language="javascript"> function openwin(){ win_usr=window.open ("control_numinfo.aspx") } function closewin(){
2
5116
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 request to the cmd window to close? Here's the code snippet that I'm using to make the call: string strArg = "/c ftp.exe -v -n -s:" + strFile + " " + strHost + " > " + strLogFile;
3
2038
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 application to window 2003 production evnironment, the Smartnavigation stopped working. Any ideas or suggestions would be appreciated. Thanks, Ashhad.
5
3087
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 ideas?
1
33174
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", I'll need to kill the session. Now, with the onbeforeunload event, I can handle this quite easily in IE, but in FireFox, it's another matter. For one thing, FireFox seems to empty out its event object on a page unload, so it's very hard to track...
0
8683
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8609
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9170
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9031
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8871
tracyyun
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5862
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2336
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2007
bsmnconsultancy
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.