Re: Complete Javascript API

  •  06-24-2014, 8:35 AM

    Re: Complete Javascript API

    Hi vickMercury,

     

    the link I sent is the only js api document. If you want to find all properties/methods of the uploader object, please try the example below. it will list all.

     

    1. <%@ Page Language="C#" Title="Customize the queue UI" %>  
    2.   
    3. <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">  
    5.   
    6. <html xmlns="http://www.w3.org/1999/xhtml">  
    7. <head id="Head1" runat="server">  
    8. </head>  
    9. <body>  
    10.     <form id="Form1" runat="server">  
    11.         <CuteWebUI:UploadAttachments ID="Uploader1" runat="server"></CuteWebUI:UploadAttachments><br />  
    12.         <input type="button" value="get uploader object properties/methods" onclick="getProperties()" />  
    13.         <div id="div1"></div>  
    14.     </form>  
    15. </body>  
    16.   
    17.   
    18. <script type="text/javascript">  
    19.     function getProperties() {  
    20.         var uploadobj = document.getElementById('<%=Uploader1.ClientID %>');  
    21.                  var div1 = document.getElementById('div1');  
    22.                  for (var i in uploadobj) {  
    23.                      div1.innerHTML += i;  
    24.                      div1.innerHTML += "<br/>";  
    25.                  }  
    26.   
    27.              }  
    28. </script>  
    29.   
    30.   
    31. </html>  
     

    Regards,

     

    Ken 

View Complete Thread