Forums

Welcome Guest Search | Active Topics | Members

Can't Close Window Bug Temporary Fix Options
shirai
Posted: Thursday, March 25, 2004 5:09:00 PM
Rank: Member
Groups: Member

Joined: 3/16/2004
Posts: 9
Points: 0
I just submitted a bug on not being able to close the window while images are still loading. I found a workaround in JavaScript. I think you'll want to fix the original bug but I thought I'd post the JavaScript fix for anyone interested.

Basically, I added a button in HTML to close the window and called the cancel() function below:

Code:
function cancel() {
    document.getElementById('ImageUploader').Stop();
    setTimeout("window.close()",100);
}


It's possible that something like this might be callable from the window.onunload event. I have to go somewhere now so I haven't tested it but I'll report back when I do.

Sunny
Andrew
Posted: Thursday, March 25, 2004 10:08:00 PM

Rank: Advanced Member
Groups: Administration , Member

Joined: 8/2/2003
Posts: 708
Points: 105
I do not think that it will work, because OnUnload event is fired when window is going to be closed, but entire browser window is disabled, that's why mouse click on Close button is not comes into this window, and thus unload event is not fired.

I would like to emphasis that when progress dialog is displayed, the parent window cannot be closed by design (because of modality of this dialog), it is not a bug. But everything should work in silent mode (View post).

Sincerely yours,
Andrew Simontsev from Aurigma Team
shirai
Posted: Saturday, March 27, 2004 2:03:00 AM
Rank: Member
Groups: Member

Joined: 3/16/2004
Posts: 9
Points: 0
Hi again Andrew,

I replied in the other thread that the bug is actually that I can't close a window during the thumbnail generation. The bug wasn't refering that you can't close a window during file upload.

I just wanted to add that I couldn't get my fix to work during the onunload() event. It appears that it fires AFTER the attempt is made to close the window and therefore I can't stop the thumbnail generation process.

At any rate, the button to close the window does actually work as specified in earlier code.

By the way, great work on this component. I can't wait until 2.x with all of the new documented features. :)

Sunny
Andrew
Posted: Monday, April 05, 2004 5:47:00 AM

Rank: Advanced Member
Groups: Administration , Member

Joined: 8/2/2003
Posts: 708
Points: 105
Version 2.0 is available at last, so feel free to download the trial :)

Sincerely yours,
Andrew Simontsev from Aurigma Team
Users browsing this topic
Guest


Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Yet Another Forum.net version 1.9.1.6 running under Cuyahoga.
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.