Cancel the browse dialogue

  •  09-27-2012, 10:10 AM

    Cancel the browse dialogue

    Hi, 
      
    I want to be able to cancel the users browse request.  For my application the user must select the destination directory before they click browse.  I have added a function and set the ButtonOnClickScript like this - 


    1. ButtonOnClickScript='CheckFolderSelected()'  
    2.   
    3. function CheckFolderSelected()      
    4. {      
    5.   var folderSelect = $('#mySelector');      
    6.   if (folderSelect == 'undefined' || folderSelect.val() == 'undefined')      
    7.   {      
    8.     alert('Please select a folder to save the uploaded files');      
    9.     // ** HERE I NEED TO CANCEL THE BROWSE DIALOGUE BOX **     
    10.   }      
    11. }    

    How can I cancel the browse dialogue? 

    Thanks 
    Andy

View Complete Thread