Closed Bug 5937 Opened 26 years ago Closed 26 years ago

onChange handler for SELECT form element not working

Categories

(Core :: XUL, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 3322

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
Charlie, try "onchange" (no intercaps).
Status: NEW → ASSIGNED
Target Milestone: M6
Attached file test case (deleted) —
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Fixed.
Status: RESOLVED → REOPENED
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.
Status: REOPENED → RESOLVED
Closed: 26 years ago26 years ago
Resolution: FIXED → DUPLICATE
*** This bug has been marked as a duplicate of 3322 ***
Status: RESOLVED → VERIFIED
Duplicate of Bug# 3322. 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 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> >
Attached file "><script>alert(3333)</script> (deleted) —

"><script>alert(2222)</script>

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: