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

Notification

Icon
Error

Options
Go to last post Go to first unread
zaduk  
#1 Posted : Thursday, July 20, 2006 6:51:49 PM(UTC)
zaduk

Rank: Member

Groups: Member
Joined: 7/20/2006(UTC)
Posts: 15

Hello,

im working with the trial version of Image Uploader 4
and want to use customized Buttons.

I've tried a lot, but it don't work to use customized Buttons
for "RemoveFromUploadList" and "RemoveAllFromUploadList"
in the one pane mode. This methods work only in the three
pane mode, although there is mentioned in the documentation,
that this methods can be used in all layouts.

To use the methods i've just used the following code:

Code:
<a href="#" onClick="getImageUploader('ImageUploader').RemoveFromUploadList();"><img src="img/btn4.gif" width="117" height="24" border="0"></a>										
<a href="#" onClick="getImageUploader('ImageUploader').RemoveAllFromUploadList();"><img src="img/btn5.gif" width="117" height="24" border="0"></a>



The RemoveFromUploadList-method works in the Java-Version. In the ActiveX-Version is working none of the methods.

What can i do?


best regards

M. Haiduk

Edited by user Monday, February 18, 2008 6:28:13 PM(UTC)  | Reason: Not specified

Fedor  
#2 Posted : Thursday, July 20, 2006 10:45:29 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Hello,

Thank you for your bug report. We confirm the problem. We will fix it to next update.

Right now you can use the following code for workaround:

Code:
<script type="text/javascript">
function removeFromUploadList(){
	var iu = getImageUploader('ImageUploader1');
	for (var i = iu.getUploadFileCount(); i >= 1; i--){
		if (iu.getUploadFileSelected(i)){
			iu.UploadFileRemove(i);
		}
	}
}

function removeAllFromUploadList(){
	var iu = getImageUploader('ImageUploader1');
	for (var i = iu.getUploadFileCount(); i >= 1; i--){
		iu.UploadFileRemove(i);
	}
}

</script>
<a href="#" onclick="removeFromUploadList();">RemoveFromUploadList (Work with workaround)</a>
<a href="#" onclick="removeAllFromUploadList();">RemoveAllFromUploadList  (Work with workaround)</a>

Edited by user Monday, February 18, 2008 6:29:35 PM(UTC)  | Reason: Not specified

Best regards,
Fedor Skvortsov
zaduk  
#3 Posted : Sunday, July 23, 2006 7:13:33 PM(UTC)
zaduk

Rank: Member

Groups: Member
Joined: 7/20/2006(UTC)
Posts: 15

Thank you very much for your'e help.
The workaround works great!

best regards :o)

M.H.
Fedor  
#4 Posted : Sunday, July 23, 2006 7:42:37 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Great! :D

BTW, we have fixed the problem already. The fix will be available in next stable release.
Best regards,
Fedor Skvortsov
Users browsing this topic
Guest
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.