SlickUpload
Welcome Guest Search | Active Topics | Log In | Register

window.onbeforeunload is making firefox crash while file upload in progress Options
suneelgupta
#1 Posted : Tuesday, January 03, 2012 5:13:02 AM
Rank: Member

Groups: Registered

Joined: 8/2/2011
Posts: 18

Hi,

We are using slick upload version 4.1.1.0.

We want to show user message "Your presentation upload is still in progress and will be lost if you navigate away from this page." while his/her file upload is in progress and user try to move to other page, so we have used following code for this

 window.onbeforeunload = function () {
                if (isUploadInProgress == 1)
                {
                    return "Your presentation upload is still in progress and will be lost if you navigate away from this page.";
                }
            }

This is working fine with all browsers except firefox.

In firefox it is showing confirmation message twice and after that it gets crashed.

Please help us in solving this problem.

 

Axosoft
#2 Posted : Tuesday, January 03, 2012 8:31:35 AM
Rank: Administration


Groups: Administrators

Joined: 7/7/2005
Posts: 1,586
Location: Scottsdale, AZ

Can you send me a test project that demonstrates this issue?

I'd also recommend upgrading to the latest version. You're currently on a version of SlickUpload that is 4 years old. Versions 5 and 6 include navigation notification message built in, among many other enhancements and bug fixes.

If you don't want to upgrade to a new major version (our latest is version 6), at least upgrade to the latest v4 version (v4.3.2): http://krystalware.com/slickupload/download.

suneelgupta
#3 Posted : Tuesday, January 03, 2012 10:46:23 PM
Rank: Member

Groups: Registered

Joined: 8/2/2011
Posts: 18

We have sent the test project to you by email.

 

Please have a look.

 

Regards

Axosoft
#4 Posted : Wednesday, January 04, 2012 8:33:38 AM
Rank: Administration


Groups: Administrators

Joined: 7/7/2005
Posts: 1,586
Location: Scottsdale, AZ

I received the test project, but I can't reproduce the issue. If I fire up the upload in Firefox, then click the "Move to google" link, I see the confirmation and everything works fine.

What Firefox version are you seeing this in? What Windows version?

suneelgupta
#5 Posted : Wednesday, January 04, 2012 8:55:56 PM
Rank: Member

Groups: Registered

Joined: 8/2/2011
Posts: 18

We are using firefox 6.0 / firefox 9.0.1 on Window 7.


Regards

 

Axosoft
#6 Posted : Thursday, January 05, 2012 9:09:39 AM
Rank: Administration


Groups: Administrators

Joined: 7/7/2005
Posts: 1,586
Location: Scottsdale, AZ

I've been testing using Firefox 9.0.1 and I can't reproduce the issue. Does it happen at a certain point during the upload, or do you just open the page and click the link? Can you send me a screenshot of the crash?

suneelgupta
#7 Posted : Thursday, January 05, 2012 8:44:42 PM
Rank: Member

Groups: Registered

Joined: 8/2/2011
Posts: 18
This issue occurs when upload is in progress and we click on "Move to Google" link or any other action which requires page navigation.

Regards
Axosoft
#8 Posted : Friday, January 06, 2012 7:30:38 AM
Rank: Administration


Groups: Administrators

Joined: 7/7/2005
Posts: 1,586
Location: Scottsdale, AZ

I've tried both, and I can't reproduce the crash here. Can you send me a screenshot of the crash? Or (or perhaps and) can you put this up on your server and give me a link to it? Maybe something with the hosting onyour end is contributing to the problem, so I'm not able to reproduce it here.

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.