hide submit button when no files added

Last post 05-25-2010, 9:04 AM by dyte. 1 replies.
Sort Posts: Previous Next
  •  05-25-2010, 7:14 AM 61289

    hide submit button when no files added

    Hi!
     
    I'm setting up the manual multiple file uploader.
    It's functioning but I'd like to hide the submit button when there aren't any files selected for upload yet.
    I tried with:
    <CuteWebUI:UploadAttachments runat="server" ManualStartUpload="true" ID="Uploader1" ProgressPanelWidth="300" ProgressBarStyle="Continuous"
                    InsertText="Select Files" OnFileUploaded="Uploader_FileUploaded" OnAttachmentAdded="Uploader_AttachmentAdded" OnAttachmentRemoveClicked="Uploader_AttachmentRemoved">
                </CuteWebUI:UploadAttachments>
     
    I created the function
    public void Uploader_AttachmentAdded(object sender, AttachmentItemEventArgs args)
    {
        SubmitButton.Visible = true;
    }
     
    ... but this function doesn't execute when I select files to be uploaded.
    What am I doing wrong?
     
    Thank you.
    Dieter
     
  •  05-25-2010, 9:04 AM 61292 in reply to 61289

    Re: hide submit button when no files added

    Hi there
     
    I solved this myself by making a custom cueue table, as described here:
    http://ajaxuploader.com/document/index.htm#page=create-custom-queue-table.htm
     
    In the function myqueueuihandler, I show and hide the submit button the same way it is done with the queuediv.
     
    cheers! 
      
View as RSS news feed in XML