Rank: Member
Groups: Member
Joined: 8/19/2007(UTC) Posts: 2
|
* IU Version: Java 2.5.35.0 * OS: Windows XP * Browser: Firefox 2.0.0.6 * Image Uploader works fine for everything else I tried to use the error handling feature after integrating the latest Image Uploader package in our test environment. I used the following code: Code:
function ImageUploader1_Error(ErrorCode, HttpResponseCode, ErrorPage, AdditionalInfo) {
window.alert("Hallo!");
}
---
iu.addEventListener("Error", "ImageUploader1_Error");
As found in another forum topic I added the following to iuembed.js: Code:
else {
switch (e[i].name){
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="";
}
}
On the server side I return an error message to see if it works. The Java console then tells me: Code:
Starting upload
Status =[300]
UploadException occured
###Error occured###
Status=[ERROR]
Progress=[0]
ValueMax=[0]
Value=[4]
[ErrorPage]
[EndOfErrorPage]
The problem is: My error handler never gets called!? Am I getting this wrong? I thought this error should be forwarded to my custom handler instead of the standard "Image Uploader experienced a problem." message box. Thanks for any help, Patrick Edited by user Saturday, February 23, 2008 2:29:53 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 Patrick, Thank you for a bug reporting. This is an issue and it will be fixed in future versions. For the time being you can use Progress event for your own error handling. Edited by user Saturday, February 23, 2008 2:30:33 AM(UTC)
| Reason: Not specified |
Best regards, Eugene Kosmin The Aurigma Development Team
|
|
|
|
Rank: Member
Groups: Member
Joined: 8/19/2007(UTC) Posts: 2
|
Hello Eugene,
thank you for the immediate reply.
Warm regards,
Patrick
|
|
|
|
Rank:: Advanced Member
Groups: Member, Administration, Moderator Joined: 9/19/2006(UTC) Posts: 491
Was thanked: 30 time(s) in 30 post(s)
|
|
Best regards, Eugene Kosmin The Aurigma Development Team
|
|
|
|
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.