hiding th submit button

Last post 01-20-2009, 9:20 AM by ziofrank. 1 replies.
Sort Posts: Previous Next
  •  01-20-2009, 8:04 AM 47893

    hiding th submit button

    Hi
     
    Scenario: upload multiple files manually
     
    Is it possible to hide the Sumbit button and display it only if I've selected something to upload ?
     
    Then, once the upload is over, I would hide the submit button (infact, no new files selected).
     
    thank you.
    Franco
     
  •  01-20-2009, 9:20 AM 47894 in reply to 47893

    Re: hiding th submit button

    I thik I've found the solution. It was quite simple and it seem to work !
     

    function CuteWebUI_AjaxUploader_OnSelect(files) {

    var submitbutton = document.getElementById('<%=SubmitButton.ClientID %>');

    submitbutton.style.display = '';

    }

    function CuteWebUI_AjaxUploader_OnInitialize() {

    var submitbutton = document.getElementById('<%=SubmitButton.ClientID %>');

    submitbutton.style.display = 'None';

     

    }

    function CuteWebUI_AjaxUploader_OnStart() {

    var submitbutton = document.getElementById('<%=SubmitButton.ClientID %>');

    submitbutton.style.display = 'None';

    }

     
     
     
View as RSS news feed in XML