Strange first try

  •  12-14-2011, 8:09 PM

    Strange first try

    I'm using the sample code as taken from the Aspuploader website for manually initiating uploads, and I get this weird window.  Note the dropdown box just below the title.  The only entry in the dropdown box is the program containing the aspuploader code.  Any ideas?
    Here's the code I'm running:

    <%@ Language="VBScript" %>
    <!-- #include file="aspuploader/include_aspuploader.asp" -->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "">
    <html xmlns="">
      Form - Start uploading manually
     <link href="demo.css" rel="stylesheet" type="text/css" />
     <script type="text/javascript">
     function doStart()
      var uploadobj = document.getElementById('myuploader');
      if (uploadobj.getqueuecount() > 0)
       alert("Please browse files for upload");
     <div class="demo">    
       <h2>Start uploading manually</h2>
       <p>This sample demonstrates how to start uploading manually after file selection vs automatically.</p>

       <!-- do not need enctype="multipart/form-data" -->
       <form id="form1" method="POST">
        Dim uploader
        Set uploader=new AspUploader
        uploader.InsertText="Upload File (Max 10M)"
        <%=uploader.GetString() %>
        <br /><br /><br />
        <button id="submitbutton" onclick="doStart();return false;">Start Uploading Files</button>


    If Request.Form("myuploader")&""<>"" Then

     Dim list,i

     For i=0 to Ubound(list)
      if i>0 then
      end if
      Dim mvcfile
      Set mvcfile=uploader.GetUploadedFile(list(i))

      Response.Write("<div style='font-family:Fixedsys'>")
      Response.Write("Uploaded File:")
      Response.Write("<br/>FileName : ")
      Response.Write("<br/>FileSize : ")
      Response.Write("<br/>FilePath : ")
    End If


    Filed under: ,
View Complete Thread
Powered by Community Server (Commercial Edition), by Telligent Systems