Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
snkar  
#1 Posted : Monday, December 1, 2008 1:18:25 PM(UTC)
snkar

Rank: Newbie

Groups: Member
Joined: 11/11/2008(UTC)
Posts: 5

I am posting to the same page in which the image uploader is embedded.

// iu.addParam("Action", ".");

After processing the posted files I want to navigate to a specific page.

But I don't want to use the redirecturl method that image uploader provides as UIP (Application Block) is used in our framework to handle the navigation. If I use that approach, image uploader is showing error mesaage as it expects some response from the page itself after upload completion.

How can I handle the redirection from my server side code?
Eugene Kosmin  
#2 Posted : Tuesday, December 2, 2008 12:06:21 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 9/19/2006(UTC)
Posts: 439

Was thanked: 22 time(s) in 22 post(s)
Hi,

You can send redirection URL to the response of you upload page and then use it in AfterUpload event hanlder:

Code:
function ImageUploader_AfterUpload(Page)
{
    window.location = Page;
}
var iu = new ImageUploaderWriter("ImageUploader", 650, 600);
…
iu.addEventListener("AfterUpload", "ImageUploader_AfterUpload");	
…
iu.writeHtml();
Best regards,
Eugene Kosmin.
Aurigma Development Team
Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.