|
|
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
|
|
 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
|
|
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
|
|
 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
|
|
|
Guest |