Closed Bug 4479 Opened 26 years ago Closed 25 years ago

[native]Dynamic population of select elements - view doesn't resize.

Categories

(Core :: Layout: Form Controls, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED WONTFIX

People

(Reporter: paul, Assigned: pollmann)

References

()

Details

Here's some sample html, right out of the Client-Side JavaScript Reference. If you press the button it's supposed to populate the select element. It works in navigator, but not in the viewer (under Win32, VC++ 6.0, optimized build). <html> <body> <SCRIPT> function populate(inForm) { colorArray = new Array("Red", "Blue", "Yellow", "Green") var option0 = new Option("Red", "color_red") var option1 = new Option("Blue", "color_blue") var option2 = new Option("Yellow", "color_yellow") var option3 = new Option("Green", "color_green") for (var i=0; i < 4; i++) { eval("inForm.selectTest.options[i]=option" + i) if (i==0) { inForm.selectTest.options[i].selected=true } } history.go(0) } </SCRIPT> <H3>Select Option() constructor</H3> <FORM> <SELECT NAME="selectTest"></SELECT><P> <INPUT TYPE="button" VALUE="Populate Select List" onClick="populate(this.form)"> <P> </FORM> </body> </html>
Assignee: karnaze → pollmann
Target Milestone: M5
Status: NEW → ASSIGNED
Target Milestone: M5 → M7
Add and remove methods need to be flushed out as well.
This works now. The view for the combo box isn't being resized though, so the drop-down list isn't visible.
Summary: Gecko doesn't support dynamic population of select elements → Dynamic population of select elements - view doesn't resize.
This works now. The view for the combo box isn't being resized though, so the drop-down list is cropped. Keeping this bug open to note that.
Opps, I posted that twice. Opps, I posted that twice. :)
Redistributing bugs...
Target Milestone: M7 → M9
Severity: major → minor
Component: Form Submission → HTML Form Controls
Summary: Dynamic population of select elements - view doesn't resize. → [native]Dynamic population of select elements - view doesn't resize.
Target Milestone: M10 → M17
This is a Native Form element issue, reducing priority and marking M17
QA Contact update.
The Native widget code is being obsoleted. Marking this WONTFIX.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → WONTFIX
Updating QA contact.
QA Contact: ckritzer → bsharma
Verifying as for developer's coments
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.