Aurigma Forums
»
Legacy Products
»
Archive
»
Image Uploader
»
3.0.751.0 Bug: With ShowButtons = False, Send does not give warning when no files are selected
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.
|
|
|
|
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
|
|
|
|
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)
|
|
Best regards, Fedor Skvortsov
|
|
|
|
Aurigma Forums
»
Legacy Products
»
Archive
»
Image Uploader
»
3.0.751.0 Bug: With ShowButtons = False, Send does not give warning when no files are selected
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.