Ticket #5327 (closed defect: fixed)
v1.0 TextBox cannot set onfocus & onblur events declaratively
| Reported by: | guest | Owned by: | doughays |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1 |
| Component: | Dijit | Version: | 1.0 |
| Severity: | normal | Keywords: | TextBox |
| Cc: |
Description
With v.1.0 dijit.form.TextBox?, cannot set onfocus and onblur events declaratively. With v.1.0 dijit.form.ValidationTextBox?, cannot set onblur event declaratively.
/* line1 */ dojo.connect(dojo.byId("txt1"), "onfocus", func);
/* line2 */ dojo.connect(dojo.byId("txt3"), "onblur", func);
<input type="text" dojoType="dijit.form.TextBox" id="txt1" /> // WORKS WITH line1
<input type="text" dojoType="dijit.form.TextBox" id="txt2" onfocus="alert('focus')" /> // DOES NOT WORK. NOT WITH _onfocus
<input type="text" dojoType="dijit.form.TextBox" id="txt3" /> //WORKS WITH line2
<input type="text" dojoType="dijit.form.TextBox" id="txt4" onblur="alert('blur')" /> //DOES NOT WORK. NOT WITH _onBlur
Change History
Note: See
TracTickets for help on using
tickets.