Closed
Bug 105685
Opened 23 years ago
Closed 23 years ago
embedded javascript changing listbox selectedIndex ignored
Categories
(Core :: Layout: Form Controls, defect)
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.
Comment 1•23 years ago
|
||
jkeiser, is this really form manager or the stuff you're working on?
Comment 2•23 years ago
|
||
Not form manger. Reassigning.
Assignee: morse → rods
Component: Form Manager → HTML Form Controls
QA Contact: tpreston → madhur
Comment 3•23 years ago
|
||
'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.)
Comment 4•23 years ago
|
||
*** 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.
Description
•