Closed Bug 269277 Opened 20 years ago Closed 20 years ago

If post request from button type image is made, and the style display of the button is 'none', form data for that image button is not submitted.

Categories

(Toolkit :: Form Manager, defect)

x86
All
defect
Not set
minor

Tracking

()

RESOLVED WONTFIX

People

(Reporter: brandon.croft, Assigned: dveditz)

References

Details

(Keywords: testcase)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

In the onclick image button method, I hide the button using display 'none' so it
cant be clicked twice. When the post request is made, the image button's normal
values (name.x & name.y) are not sent with the request.

Reproducible: Always
Steps to Reproduce:
1. Hide an imagebutton before submission takes place
2. Examine form data

Actual Results:  
form data for image button is missing (name.x, name.y)
Attached file Testcase
Also happens in Seamonkey -> Moving to Browser
Confirming
Assignee: firefox → dveditz
Status: UNCONFIRMED → NEW
Component: General → Form Manager
Ever confirmed: true
OS: Windows XP → All
Product: Firefox → Browser
QA Contact: firefox.general
Version: unspecified → 1.7 Branch
also happens in trunk

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a5) Gecko/20041110
Firefox/0.9.1+
Keywords: testcase
Version: 1.7 Branch → Trunk
This is correct.  By the time the submit is being processed, we don't have a
visual object corresponding to the image, and hence the coordinates would make
no sense.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WONTFIX
Suggested workaround: set event.target.style.visibility='hidden' rather than
event.target.style.display='none'
Product: Core → Toolkit
QA Contact: form.manager
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: