Ticket #5140 (closed defect: wontfix)
Some TextBox problems
| Reported by: | guest | Owned by: | bill |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1 |
| Component: | Dijit | Version: | 1.0 |
| Severity: | normal | Keywords: | textBox |
| Cc: |
Description
Hi,
I've some problems with the TextBox?.
1) In firefox (rv:1.8.1.9) when you move the mouse over a TextBox?, I've a 'Permission denied to get property HTMLDivElement.parentNode' and it seems to be the same for all widgets using a textbox
2) Type a value in the TextBox? (onChange tiggered) then change the value using the setValue function and type the first value again in the textbox. The onChange isn't tiggered.
3) When you have 2 textbox. The first textbox showing an alert in the onChange. Type a value in the first textBox, press tab. The alert is show. When the alert is closed, the focus change to the second textbox. Nice but when you type a value in the second textBox and leave it, the onChange isn't triggered. You must click in the second textbox and only after that the onChange is tiggered.
<script type="text/javascript" djConfig="parseOnLoad: true,debug:true" src="./dojo/dojo.js.uncompressed.js"></script>
<script type="text/javascript">
dojo.require("dojo.parser");
dojo.require("dijit.form.TextBox");
dojo.require("dijit.form.Button");
function test()
{
dijit.byId("txt_test").setValue("z");
}
function change()
{
alert('change');
}
</script>
</head>
<body class="tundra">
<input id="txt_test" type="text" dojoType="dijit.form.TextBox" onChange="change"/>
<input id="txt_test2" type="text" dojoType="dijit.form.TextBox" onChange="change"/>
<input type="button" label="click to change value in first TextBox" dojoType="dijit.form.Button" onClick="test"/>
</body>