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

Notification

Icon
Error

Options
Go to last post Go to first unread
bizzy  
#1 Posted : Tuesday, September 14, 2004 4:48:00 AM(UTC)
bizzy

Rank: Member

Groups: Member
Joined: 8/18/2004(UTC)
Posts: 41

When we use ShowButtons set to False (for custom buttons) upon clicking our custom Send button we should get a default warning "No Files to Send" when no files are selected.

Version 3.0.751.0 is not showing this warning. It acts like a dead button - reactionless!

If files are selected it does do appropriate Send functionality.

This worked with 2.5 version. This bug is also seen on your online demo for custom buttons.

Fedor  
#2 Posted : Tuesday, September 14, 2004 2:45:00 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)
It is Image Uploader 3.0 behaviour by design. In last version we decided to disable default buttons instead of showing message when no files to send. You can add the same behaviour and for custom buttons. You can see sample of it at updated online demo.

To add custom buttons disabling just insert following code:

Code:
<style>
.button{
	cursor:hand;
}		
.buttonDisabled{
	cursor:default;
}		
</style>
<script for="ImageUploader" event="UploadFileCountChange()">
var fileCount = window.ImageUploader.UploadFileCount; 
window.imgUpload.src = fileCount ? "Images/Upload.gif" : "Images/UploadDisabled.gif";
window.imgUpload.className = fileCount ? "button" : "buttonDisabled";
</script>

...


<img id="imgUpload" src="Images/UploadDisabled.gif" onclick="ImageUploader.Send();" class="buttonDisabled">

Edited by user Monday, December 24, 2007 4:50:20 PM(UTC)  | Reason: Not specified

Best regards,

Fedor Skvortsov

Fedor  
#3 Posted : Tuesday, September 14, 2004 5:22:00 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)
I also want to add that MessageNoFilesToSendText property was marked as obsolete in documentation.
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.