Closed
Bug 342279
Opened 18 years ago
Closed 18 years ago
Use of ASP.net imagebutton (retuning <input type="image"...>) broken image link does not fire the Command event only the click event
Categories
(Toolkit :: Form Manager, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 258621
People
(Reporter: me, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4
I am developing and ASP.net 1.1 application. I am using am as:immagebutton control which renders as an <input type="image" src="src" alt="alt text">. When the image link is broken, ie image cannot be found or is incorrect the alternate text displays correctly. I need to handle the command event as opossed to the click event - which returns 2 extra values - Command Name and Command Argument. When selecting such and image button without the image only the click event fires, however if the image link is not broken and the image is found the command evet fires. I believe this is a bug because in the same circumstances wiht I.E. and Opera browsers the Command event does fire.
Reproducible: Always
Steps to Reproduce:
1.Create a page with imagebutton control and a command event handler
2.Make sure the imageUrl is incorrect, not to an image
3.Submit form, using debugger and your command event will not fire.
Actual Results:
- Only click event firing no event handler for it so
Expected Results:
- Both click and Command Events to fire - Command event handled as per event handler.
Comment 1•18 years ago
|
||
Is there a definition for the "command" event in the W3C standard or is it another MS "extension"? If its an extension don't count on it being added.
Reporter | ||
Comment 2•18 years ago
|
||
Hi, It must be supported because when the image is available to the page - ie. the src link isn't broken, the command event fires.
eg1.
<input type="image" src="link to nowhere" alt="alt".....> as the image cannot be found the alt text is shown, which is expected behaviour, however the command event doesn't fire when this is clicked.
eg2.
<input type="image" src="correct link to image" alt="alt"....>, the link to the image is correct and the image is shown. On clicking this image the command event fires.
The only difference between the two is that a broken link to the image cause the event not to work. The expected behaviour is that even though the image cannot be found selecting this input should fire the command event any way.
Comment 3•18 years ago
|
||
Whether or not ASP's Button.Command event fires on the server side isn't up to us: all that's up to us is whether or not we follow the buggy behavior of other browsers and send completely bogus coordinate values for where someone clicked on an image that wasn't there, even though the coordinates are supposed to tell the server-side script precisely which part of the image was clicked, so it can do different things.
*** This bug has been marked as a duplicate of 258621 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Updated•16 years ago
|
Product: Firefox → Toolkit
You need to log in
before you can comment on or make changes to this bug.
Description
•