Re: Redirect When Upload Complete

  •  04-12-2011, 3:42 PM

    Re: Redirect When Upload Complete

    <!-- #include file="include_aspuploader.asp" -->
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <link rel="stylesheet" type="text/css" href="data/stylesheets/default.css" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Mungo Report - Extracting Valuable News From Trash</title>

    </head>

    <body>
    <table width="900" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
      <tr>
        <td><!-- #include file ="header.asp" --></td>
      </tr>
      <tr>
        <td><span class="AdSmall"><strong>You Are Here</strong>:</span></td>
      </tr>
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="75%" align="center" valign="top"><p><object id="player2" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player2" width="512" height="384">
              <param name="movie" value="player.swf" />
              <param name="allowfullscreen" value="true" />
              <param name="allowscriptaccess" value="always" />
              <param name="flashvars" value="file=mungo.flv" /><param name="LOOP" value="false" />
              <embed
                src="player.swf"
                width="512"
                height="384" loop="false"
                type="application/x-shockwave-flash"
                id="player3"
                name="player2"
                allowscriptaccess="always"
                allowfullscreen="true"
                flashvars="file=mungo.flv"
            />        
    </object></p>
              <p class="AdSmall">
     <%
     Dim uploader
     Set uploader=new AspUploader
     uploader.MultipleFilesUpload=true
     uploader.MaxSizeKB=10240
     uploader.InsertText="Select multiple files (Max 10M)"
     uploader.SaveDirectory="data/uploads/rawvideo"
     uploader.AllowedFileExtensions="*.jpg,*.png,*.gif,*.zip"
     %>
     <%=uploader.GetString() %>
     
     <script type='text/javascript'>
     function CuteWebUI_AjaxUploader_OnTaskComplete(task)
     {
      var div=document.createElement("DIV");
      var link=document.createElement("A");
      link.setAttribute("href","savefiles/"+task.FileName);
      link.setAttribute("target","_blank");
      link.innerHTML="You have uploaded file: savefiles/"+task.FileName;
      div.appendChild(link);
      document.body.appendChild(div);
     }
     function CuteWebUI_AjaxUploader_OnPostback()
        {
            window.location("http://www.google.com");        
        }

     </script>

            
            &nbsp;</p>
              <p align="left" class="TextBold">&nbsp;</p>
              </td>
            <td width="25%" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td class="AdSmall"><div align="center">Sponsored Ads</div></td>
              </tr>
              <tr>
                <td class="AdSmall"><div align="center"><img src="data/ads/certainsound.jpg" width="200" height="100" /><br />
                  <br />
                </div></td>
              </tr>
              <tr>
                <td class="AdSmall"><div align="center"></div></td>
              </tr>
              <tr>
                <td align="center"><a href="http://www.gallonlaw.com" target="_blank"><img src="data/ads/200x217/gallon.jpg" width="200" height="217" border="0" /></a></td>
              </tr>
              <tr>
                <td align="center">&nbsp;</td>
              </tr>
              <tr>
                <td align="center"><a href="http://www.sandsites.com" target="_blank"><img src="data/ads/200x217/sandsites.jpg" width="200" height="217" border="0" /></a></td>
              </tr>
              <tr>
                <td align="center">&nbsp;</td>
              </tr>
              <tr>
                <td align="center"><img src="data/ads/200x217/here.jpg" width="200" height="217" /></td>
              </tr>
              <tr>
                <td><div align="center">Sponsored Ads</div></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td align="center">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table></td>
      </tr>
    </table>
    <!-- #include file ="footer.asp" -->
    </body>
    </html>
View Complete Thread