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

Notification

Icon
Error

Options
Go to last post Go to first unread
Aldo  
#1 Posted : Thursday, August 9, 2007 10:56:00 PM(UTC)
Aldo

Rank: Member

Groups: Member
Joined: 8/9/2007(UTC)
Posts: 1

Hi

Product: ImageUploader

Version: 4.5

Operating System: Windows XP Professional

Browser: IE 6

I'm having problems using the new ImageUploader events in version 4.5, specifically the "Error" and "AfterUpload" events. I've set them up as shown in your documentation:

Code:
function ImageUploaderID_Error(ErrorCode, HttpResponseCode, ErrorPage, AdditionalInfo) {
	//...your code...
}
...
iu.addEventListener("Error", "ImageUploaderID_Error");

Whenever I try and reference any of the function arguments, (ErrorCode, HttpResponseCode etc) I keep getting 'undefined' returned. I also have similar problems with the "AfterUpload" event.

Other events from earlier versions (such as "BeforeUpload") work perfectly.

Any ideas?

Edited by user Saturday, February 23, 2008 2:48:28 AM(UTC)  | Reason: Not specified

Eugene Kosmin  
#2 Posted : Sunday, August 12, 2007 2:15:45 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

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

Was thanked: 30 time(s) in 30 post(s)
Hello Aldo,

Thank you for a competent bug reporting.

IU 4.5 contains events implementation, but there is a missing data in iuembed.js. It will be fixed in the next release, but now you can do it manually.

Replace

Code:

case "Progress":
	eventParams="Status, Progress, ValueMax, Value, StatusText";
	break;
case "InnerComplete":
	eventParams="Status, StatusText";
	break;
case "ViewChange":
case "SortModeChange":
	eventParams="Pane";
	break;
default:
	eventParams="";

for this

Code:

case "Progress":
	eventParams="Status, Progress, ValueMax, Value, StatusText";
	break;
case "InnerComplete":
	eventParams="Status, StatusText";
	break;
case "AfterUpload":
	eventParams="htmlPage";
	break;
case "ViewChange":
case "SortModeChange":
	eventParams="Pane";
	break;
case "Error":
	eventParams="ErrorCode, HttpResponseCode, ErrorPage, AdditionalInfo";
	break;
default:
	eventParams="";

Edited by user Saturday, February 23, 2008 2:50:42 AM(UTC)  | Reason: Not specified

Best regards,

Eugene Kosmin

The 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.