Uploaders appears to stop running at Render() statement

  •  12-26-2011, 8:03 AM

    Uploaders appears to stop running at Render() statement

    See code below.  The aspuploader code appears to work (doesn't generate any error messages) up to the Render() statement (Line 67) then goes blank.  Doesn't throw an error, just goes blank.
     
    The code produces these displays from the Response.write's:
     

    Start uploading manually

    This sample demonstrates how to start uploading manually after file selection vs automatically.

    uploader defined
    uploader set
    uploader maxsize set
    uploader Name set
    uploader InsertText set
    uploader Multiple files set
    uploader SaveDirectory set
    uploader ManualStartUpload set
     
     
     
     
    If I comment out the Render statement, the button in the form shows but does nothing, as no files have been chosen. 
     
    Same behavior if I use getstring method

     
    Here's the code with line numbers through /FORM:  
     
     
    1
    <!-- #include file="aspuploader/include_aspuploader.asp" --> 2
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 4
    <html xmlns="http://www.w3.org/1999/xhtml"> 5
    <head> 6
    <title> 7
    Form - Start uploading manually 8
    </title> 9
    <link href="../store.css" rel="stylesheet" type="text/css" /> 10
    11
    <script type="text/javascript"> 12
    function doStart() 13
    { 14
    var uploadobj = document.getElementById('myuploader'); 15
    if (uploadobj.getqueuecount() > 0) 16
    { 17
    uploadobj.startupload(); 18
    } 19
    else 20
    { 21
    alert("Please browse files for upload"); 22
    } 23
    } 24
    </script> 25
    26
    </head> 27
    <body> 28
    <div class="demo"> 29
    <h2>Start uploading manually</h2> 30
    <p>This sample demonstrates how to start uploading manually 31 after file selection vs automatically.</p> 32
    33
    <!-- do not need enctype="multipart/form-data" --> 34
    <form id="form1" method="POST" > 35
    <% 36
    Dim uploader 37
    Response.Write "uploader defined" & "<br />" 38
    39
    set uploader=new AspUpLoader 40
    41
    Response.Write "uploader set" & "<br />" 42
    uploader.MaxSizeKB=10240 43
    44
    Response.Write "uploader maxsize set" & "<br />" 45
    46
    uploader.Name="myuploader" 47
    48
    Response.Write "uploader Name set" & "<br />" 49
    50
    uploader.InsertText="Upload File (Max 10M)" 51
    52
    Response.Write "uploader InsertText set" & "<br />" 53
    54
    uploader.MultipleFilesUpload=true 55
    56
    Response.Write "uploader Multiple files set" & "<br />" 57
    58
    uploader.SaveDirectory="/temppics" 59
    60
    Response.Write "uploader SaveDirectory set" & "<br />" 61
    62
    uploader.ManualStartUpload=true 63
    64
    Response.Write "uploader ManualStartUpload set" & "<br />" 65
    66
    uploader.Render() 67
    68
    69
    Response.Write "uploader render" & "<br />" 70
    71
    %> 72
    73
    74
    <br /><br /><br /> 75
    <button id='myuploaderButton' onclick='return 76 false'>Upload 77
    78
    File (Max 10M)</button><input type='hidden' id='myuploader' name='myuploader' 79
    80
    autocomplete='off' /><script type='text/javascript' 81
    82
    src='/aspuploader/ajaxuploaderresource.asp?type=script'></script><img 83
    84
    id='AjaxUploaderFiles_Loader' UniqueID='myuploader' Namespace='CuteWebUI' 85
    86
    UploadModuleNotInstall='1' ServerLang='ASP' 87 src='/aspuploader/ajaxuploaderresource.asp? 88
    89
    type=file&amp;file=continuous.gif' InsertButtonID='myuploaderButton' 90
    91
    ResourceHandler='a/aspuploader/ajaxuploaderresource.asp' 92
    93
    ResourceDirectory='/demo/aspuploader/resources' 94
    95
    UploadUrl='/demo/aspuploader/ajaxuploaderhandler.asp' 96 Extensions='*.jpg,*.png,*.gif,*.zip' 97
    98
    MaxSizeKB='10240' CancelUploadMsg='Cancel&nbsp;upload' 99
    100
    CancelAllMsg='Cancel&nbsp;all&nbsp;Uploads' UploadingMsg='Uploading..' 101 UploadType='Auto' 102
    103
    UploadCursor='Auto' ManualStartUpload='1' MultipleFilesUpload='1' 104 ShowProgressBar='1' 105
    106
    ShowProgressInfo='1' NumFilesShowCancelAll='2' PanelWidth='360' 107 BarHeight='20' 108
    109
    InfoStyle='padding-left:3px;font:normal&nbsp;12px&nbsp;Tahoma;' 110 BarStyle='Continuous' 111
    112
    BorderStyle='border-style:solid;border-width:1px;border-color:#444444;' 113
    114
    onload='this.style.display=&quot;none&quot; ; 115 CuteWebUI_AjaxUploader_Initialize(this.id);' 116
    117
    onerror='this.onload()' ContextValue='286916206' /> 118
    119
    </form> 
     
     
View Complete Thread