Need Javascript DeleteAllAttachments...

  •  05-12-2009, 12:22 PM

    Need Javascript DeleteAllAttachments...

    I need to be able to call the DeleteAllAttachments() from Javascript, is it possible?  I have not been able to get this code or something similar to work, please help.
    1.     <script type="text/javascript">  
    2.         var uploaderid='<%=UploadAttachments1.ClientID %>';   
    3.         function DoDeleteAllAttachments()   
    4.         {   
    5.             var uploader=document.getElementById(uploaderid);   
    6.             uploader.deleteallattachments();   
    7.         }
    Filed under:
View Complete Thread