Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
ASP Uploader
»
Re: Redirect When Upload Complete
Re: Redirect When Upload Complete
04-14-2011, 8:32 PM
Kenneth
Joined on 02-13-2008
Posts 3,886
Re: Redirect When Upload Complete
Reply
Quote
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