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

Notification

Icon
Error

Options
Go to last post Go to first unread
nepper  
#1 Posted : Sunday, August 19, 2007 12:21:47 AM(UTC)
nepper

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

Eugene Kosmin  
#2 Posted : Sunday, August 19, 2007 12:38:12 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

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

Was thanked: 41 time(s) in 41 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
nepper  
#3 Posted : Sunday, August 19, 2007 5:20:20 PM(UTC)
nepper

Rank: Member

Groups: Member
Joined: 8/19/2007(UTC)
Posts: 2

Hello Eugene,

thank you for the immediate reply.

Warm regards,

Patrick
Eugene Kosmin  
#4 Posted : Monday, August 20, 2007 1:36:16 PM(UTC)
Eugene Kosmin

Rank: Advanced Member

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

Was thanked: 41 time(s) in 41 post(s)
You are welcome
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.