Welcome to the new Uploadify Community Forums. We've made the switch from PHPBB to Vanilla Forums in hopes of controlling the SPAM more efficiently. We hope this change doesn't suck so much. Also, don't forget to wrap your code in tags. You can quickly insert code using ctrl + f.
I lost some messages that were posted on February 4th. If you posted a message or reply on February 4th, please do so again. Sorry about the inconvenience.
fileUploadCancel won't work
  • Hi,

    I'm trying to cancel uploads whose IDs are stored in an array called "selected_items". My code is:

    $('#add_upload').fileUpload({...});

    $(\"#remove_uploads_link\").click(function() {

    jQuery.each(selected_items, function(i, val) {
    $('#add_upload').fileUploadCancel(val);
    $('#' + val).remove(); // just removes the div that shows that a file is ready to upload
    });

    selected_items = new Array();

    return false;
    });


    The IDs stored in the array definitely are the right IDs (I can see that because $('#' + val) selects a DIV automatically generated with the ID of the queueitem, and "$('#' + val).remove();" removes these items). Could it be that "$('#add_upload').fileUploadCancel" is wrong? Beacause "$('#add_upload').fileUploadStart();" also won't work. Or could it be that because I used a custom onSelect-function, I also have to implement a custom onCancelfuntion or this won't work? Because I did not do that... .

    Thanks,
    Luke
  • I get the following error when I trigger the click:

    [Exception... "'Error calling method on NPObject! [plugin exception: Error in Actionscript. Use a try/catch block to find error.].' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "" data: no]

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!