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

elegant way to cancel upload ? Options
naphta
#1 Posted : Thursday, December 01, 2011 1:41:30 PM
Rank: Newbie

Groups: Registered

Joined: 2/7/2009
Posts: 4

Hello,

The migration from version 4 to version 6 is complete, very good addon.

With the examples provided no problem. (Better to clear all even from version 4), i'm using customfilename.

good job !

It remains a point yet when the user cancels the upload must return to the home.

I add in function cancelUpload() this :

            window.location.reload()
                       
and sometimes a message box appears, you know what kind.


In the examples provided  when you cancel the upload the application is in a strange state.

There is an elegant way to postback to original page ?

I should add that I am a beginner and I am old and french so I ask you to be indulgent

regards

 

Axosoft
#2 Posted : Thursday, December 01, 2011 2:30:01 PM
Rank: Administration


Groups: Administrators

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

No problem.

Have you tried using the .cancel() function? Your cancelUpload function would become something like (replace SlickUpload1 with the id of the SlickUpload control on your page):

function cancelUpload()
{
    kw("<%=SlickUpload1.ClientID%>").cancel();
}

naphta
#3 Posted : Friday, December 02, 2011 3:12:12 AM
Rank: Newbie

Groups: Registered

Joined: 2/7/2009
Posts: 4

Hello,

Thank you for your answer.
Sorry, I have not copied the entire fontion,


So, here is the original function I mentioned in my first post:

 function cancelUpload()
        {
            kw("<%=slickUpload1.ClientID %>").cancel();

            document.getElementById("cancelButton").style.display = "none";
            window.location.reload()
                      
        }

Regards

Axosoft
#4 Posted : Friday, December 02, 2011 9:30:11 AM
Rank: Administration


Groups: Administrators

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

When you cancel an upload, the page should automatically post back (reloading itself). You shouldn't need to manually call .reload().

Is that not happening on your page? If not, can you send your entire page (.aspx and codebehind) to chrish@krystalware.com? I'll take a look and see what's going on.

One other question: which version of SlickUpload are you currently using? You can right click on the Krystalware.SlickUpload.dll file, click properties, and go to the Details tab to view the actual version.

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.