Closed
Bug 5937
Opened 26 years ago
Closed 26 years ago
onChange handler for SELECT form element not working
Categories
(Core :: XUL, defect, P3)
Tracking
()
M6
People
(Reporter: cmanske, Assigned: waterson)
Details
Attachments
(2 files)
Using the SELECT element for a combobox:
<select size="1" onChange="OnChangeCombo()">
The implemented handler is not called when the selected item is changed
Assignee | ||
Comment 1•26 years ago
|
||
Charlie, try "onchange" (no intercaps).
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M6
Assignee | ||
Comment 2•26 years ago
|
||
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Comment 3•26 years ago
|
||
Fixed.
Re-tested on 1999-05-18-09 build. The event handler isn't called until the
select list gets focus, after a selected item is changed. The event handler is
expected to run right after the selected item is changed, without having to give
focus back to the select list.
When the selected item isn't changed, the event handler is called the first time
you give focus to the select list after loading the page. The event handler is
not expected to run just by giving focus to the select list. Reopening bug.
Assignee | ||
Updated•26 years ago
|
Status: REOPENED → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: FIXED → DUPLICATE
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
BULK MOVE: Changing component from XUL to XP Toolkit/Widgets: XUL. XUL
component will be deleted.
Component: XUL → XP Toolkit/Widgets: XUL
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: gerardok → xptoolkit.widgets
Comment 8•3 years ago
|
||
Comment on attachment 123 [details]
test case
><xul:window
> xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
> xmlns="http://www.w3.org/TR/REC-html40"
> >
>
><script>
>function OnChangeCombo() {
> dump("OnChangeCombo()\n");
>}
></script>
>
><form>
><select size="1" onchange="OnChangeCombo()">
><option>Choice 1</option>
><option>Choice 2</option>
><option>Choice 3</option>
></select>
></form>
>
></xul:window>
>
Comment 9•3 years ago
|
||
"><script>alert(2222)</script>
You need to log in
before you can comment on or make changes to this bug.
Description
•