This is a migrated thread and some comments may be shown as answers.

Cancel button not working

1 Answer 133 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Acaz
Top achievements
Rank 1
Acaz asked on 10 Feb 2011, 08:01 PM
Hi, i'm using Async Upload from Q3 2010 SP2

The CANCEL link not work, that not cancel the upload of the image... that's correct? How I will do that?

1 Answer, 1 is accepted

Sort by
0
Acaz
Top achievements
Rank 1
answered on 11 Feb 2011, 05:51 PM
How can I cancel a queue file to upload? The cancel button don't do that, the cancel button only change the class of input and the upload occour normaly in hidden, that's wrong....

How can I cancel a queue file to upload via JavaScript API?

I'm using this way to get the click of CANCEL BUTTON:

 

 

function onCancel() {
    var upload = $find('AsyncUpload1');

    
for (x in upload) {
        console.log(x);
    }

    $(
'.ruCancel, .ruRemove').live('click', function () {
        $(this).closest('li').remove();
    });
}

 

 

window.onload = onCancel;

I'm using console.log to see al methods in upload object and return that: (But i don't know how to use these methods and what's cancel a specific queue upload)

__msdisposeindex
_element

_clientStateFieldID
_shouldUpdateClientState
_invisibleParents
_height
_skin
_maxFileSize
_allowedFileExtensions
_serializedConfiguration
_serializedConfigurationType
_uploadedFiles
_handlerUrl
_isManagerRegistered
_autoAddFileInputs
_multipleFileSelection
_flashModuleUrl
_silverlightModuleUrl
_enableInlineProgress
_selectedFilesCount
_currentIndex
_enabled
_isUploading
_updating
_localization
_events
_uploadModule
_isRightToLeft
_rtlCalculated
_initialized
initialize
_initializeUploadModule
dispose
addFileInput
saveClientState
deleteFileInputAt
isExtensionValid
getUploadedFiles
_renderList
_deleteFileInput
_cancelUpload
_appendCancelButton
_appendSelectButton
_createInput
_appendStyledRow
_appendFakeInput
_markForDeletion
_addUploadedFile
_getIsManagerDeclared
_getFileName
_getIsRightToLeft
_applyRightToLeft
_updateRowContent
_updateRowImage
_verifyExtension
_trimExtensionDot
getID
_getPostData
_updateProgress
_hideProgress
_marshalUpload
_onFileUploadRemoving
_onFileUploadRemoved
_onProgressUpdating
_onFileUploadFail
_onFileValidationFail
_onFileUploaded
_onFilesUploadFinished
_updateCancelButton
_onFileSelected
_onFileUploading
get_loadedModuleName
get_enabled
set_enabled
get_allowedFileExtensions
set_allowedFileExtensions
get_multipleFileSelectionEnabled
get_inputSize
set_inputSize
get_initialFileInputsCount
set_initialFileInputsCount
get_localization
set_localization
get_maxFileCount
set_maxFileCount
get_enableFileInputSkinning
set_enableFileInputSkinning
add_adding
remove_adding
add_added
remove_added
add_fileSelected
remove_fileSelected
add_fileUploading
remove_fileUploading
add_fileUploaded
remove_fileUploaded
add_fileUploadFailed
remove_fileUploadFailed
add_filesUploaded
remove_filesUploaded
add_validationFailed
remove_validationFailed
add_fileUploadRemoving
remove_fileUploadRemoving
add_fileUploadRemoved
remove_fileUploadRemoved
add_progressUpdating
remove_progressUpdating
constructor
raiseEvent
updateClientState
get_clientStateFieldID
set_clientStateFieldID
get_clientState
set_clientState
repaint
canRepaint
add_parentShown
remove_parentShown
_handleHiddenParent
_parentShowHandler
_runWhenParentShows
_clearParentShowHandlers
_getChildElement
_findChildControl
_parent
_visibilityMode
get_element
get_id
set_id
get_parent
set_parent
get_role
get_visibilityMode
set_visibilityMode
get_visible
set_visible
addCssClass
onBubbleEvent
raiseBubbleEvent
_raiseBubbleEvent
removeCssClass
toggleCssClass
_id
get_events
get_isInitialized
get_isUpdating
add_disposing
remove_disposing
add_propertyChanged
remove_propertyChanged
beginUpdate
endUpdate
raisePropertyChanged
updated

Tags
AsyncUpload
Asked by
Acaz
Top achievements
Rank 1
Answers by
Acaz
Top achievements
Rank 1
Share this question
or