Closed Bug 105685 Opened 23 years ago Closed 23 years ago

embedded javascript changing listbox selectedIndex ignored

Categories

(Core :: Layout: Form Controls, defect)

x86
Linux
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 104996

People

(Reporter: craigl, Assigned: rods)

References

()

Details

in our application, we have many cases where we need to select a specific value in a listbox while the page is loading. for various reasons, we have to do this via javascript, but there is a bug in the form manager in mozilla that breaks everything. basically, although the embedded js code appears to successfully set the selectedIndex for a listbox ( an 'alert' shows the expected index ), when the page is fully loaded, a completely different option is selected. its almost as if the form manager is 'remembering' some values as the page loads, then AFTER the page is all loaded, it runs around and modifies the selected items again, thereby undoing any embedded selectedIndex changes. see the provided URL for a pretty simple and succinct example.
jkeiser, is this really form manager or the stuff you're working on?
Not form manger. Reassigning.
Assignee: morse → rods
Component: Form Manager → HTML Form Controls
QA Contact: tpreston → madhur
'Tis fixed in bug 34297. Setting dependent. (This may be a dup, but it relates to setting selectedIndex instead of getting it, and I couldn't find such a bug in my cursory search.)
Status: UNCONFIRMED → NEW
Depends on: 34297
Ever confirmed: true
*** This bug has been marked as a duplicate of 104996 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.