Re: What until loaded before showing Select Multiple Files button

  •  06-29-2012, 1:10 PM

    Re: What until loaded before showing Select Multiple Files button

    Hi benners,
     
    You can hide the control before it load complete.  Like the example below
     
    1. <?php require_once "phpuploader/include_phpuploader.php" ?>  
    2. <?php session_start(); ?>  
    3. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">  
    4. <html xmlns="http://www.w3.org/1999/xhtml">  
    5. <head>  
    6.     <title>  
    7.         example  
    8.     </title>  
    9. </head>  
    10. <body>  
    11.    
    12.             <form id="form1" method="POST">  
    13.             <div style=" visibility:hidden" id="div1">  
    14.                 <?php                  
    15.                     $uploader=new PhpUploader();  
    16.                     $uploader->MaxSizeKB=10240;  
    17.                     $uploader->Name="myuploader";  
    18.                     $uploader->InsertText="Select multiple files (Max 10M)";  
    19.                     $uploader->AllowedFileExtensions="*.jpg,*.png,*.gif,*.txt,*.zip,*.rar";    
    20.                     $uploader->MultipleFilesUpload=true;  
    21.                     $uploader->Render();  
    22.   
    23.             ?>  
    24.   
    25.             </form>  
    26. <div>  
    27.                   
    28.     </div>  
    29. </body>  
    30. </html>  
    31. <script>  
    32.     function CuteWebUI_AjaxUploader_OnInitialize() {  
    33.         var div1 = document.getElementById("div1");  
    34.         div1.style.visibility="";  
    35.     }  
    36. </script>  
    Regards,
     
    Ken 
View Complete Thread