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)
Tracking
()
VERIFIED
WONTFIX
M17
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>
Updated•26 years ago
|
Assignee: karnaze → pollmann
Target Milestone: M5
Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M5 → M7
Assignee | ||
Comment 1•25 years ago
|
||
Add and remove methods need to be flushed out as well.
Assignee | ||
Updated•25 years ago
|
Assignee | ||
Comment 3•25 years ago
|
||
This works now. The view for the combo box isn't being resized though, so the
drop-down list isn't visible.
Assignee | ||
Updated•25 years ago
|
Summary: Gecko doesn't support dynamic population of select elements → Dynamic population of select elements - view doesn't resize.
Assignee | ||
Comment 4•25 years ago
|
||
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.
Assignee | ||
Comment 5•25 years ago
|
||
Opps, I posted that twice.
Opps, I posted that twice. :)
Assignee | ||
Comment 6•25 years ago
|
||
Redistributing bugs...
Assignee | ||
Updated•25 years ago
|
Target Milestone: M7 → M9
Assignee | ||
Updated•25 years ago
|
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
Assignee | ||
Comment 7•25 years ago
|
||
This is a Native Form element issue, reducing priority and marking M17
Assignee | ||
Comment 9•25 years ago
|
||
The Native widget code is being obsoleted. Marking this WONTFIX.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•