Re: Redirect When Upload Complete

  •  04-14-2011, 8:32 PM

    Re: Redirect When Upload Complete

    Hi msandwisch,
     
    Try the code below
     
     
     var fileName="";
     function CuteWebUI_AjaxUploader_OnTaskComplete(task)
     {
        fileName=task.FileName;
        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.href="http://www.domain.com/page.asp?File="+fileName;        
        }
     
     
    Regards,
     
    Ken
View Complete Thread