Button DisplayType=ImageButton Bugs

This forum allows users to post and respond to "How Do I Do ....." questions. The information contained in this forum has not been validated by K-Rise Systems and, as such, K-Rise Systems cannot guarantee the accuracy of the information.
Post Reply
CathyC
Posts: 469
Joined: November 16th, 2021, 11:15 am
Contact:

Button DisplayType=ImageButton Bugs

Unread post by CathyC »

I was setting up a button with DisplayType=ImageButton for documentation and found some things that I think dont work like they should.

Bug 1: Alternative Text not added
When setting up a button, if you set the DisplayType to ImageButton, it will change it to an img tag. But in setting up an image control, if you put a value in the AlternateText property it becomes the alt property in the img tag. I would expect it to also here, but it isnt happening.
image.png
image.png
Bug 2: If the url given is invalid, I expected the broken image icon to show, but it wasnt

See here my site has an invalid image for the logo, so the alt text is showing
image.png
image.png (2.12 KiB) Viewed 180 times
image.png
image.png (2.12 KiB) Viewed 180 times
But for the ImageButton, when set to the same invalid url, it just looks like nothing is there
image.png
image.png (2.3 KiB) Viewed 180 times
image.png
image.png (2.3 KiB) Viewed 180 times
I inspected the page and found that if I remove the title attribute, give the title attribute a value, or add back the alt attribute, it shows how I expected.
image.png
image.png
entirely removed:
image.png
image.png
image.png
word count: 203

Tags:
CathyC
Posts: 469
Joined: November 16th, 2021, 11:15 am
Contact:

Re: Button DisplayType=ImageButton Bugs

Unread post by CathyC »

to clarify, once we fix bug 1, bug 2 will go away
word count: 12
Post Reply