Aurigma Forums
»
Legacy Products
»
Archive
»
Image Uploader
»
'undefined' arguments when handling "Error" and "AfterUpload" events
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
|
|
|
|
Rank: Advanced Member
Groups: Member, Administration, Moderator Joined: 9/19/2006(UTC) Posts: 491
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
|
|
|
|
Aurigma Forums
»
Legacy Products
»
Archive
»
Image Uploader
»
'undefined' arguments when handling "Error" and "AfterUpload" events
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.