Menu

#34 Timebox: value not setted correctly with Mozilla Firefox

open
nobody
None
5
2009-01-27
2009-01-27
Emanuele
No

Try the following code:

<window title="Window" mode="modal" closable="true">

<hbox>
<label value="Start to end time"/>
<timebox id="startTimeTB"/> - <timebox id="endTimeTB"/>
<button label="Click">
<attribute name="onClick">
alert("startTimeTB.text:" + startTimeTB.text);
alert("startTimeTB.value:" + startTimeTB.value);
alert("endTimeTB.text:" + endTimeTB.text);
alert("endTimeTB.value:" + endTimeTB.value);
</attribute>
</button>
</hbox>

</window>

and the following operations with Mozilla Firefox (I'm using 3.0.5 version):

1) set the first timebox only using arrows, not typing inside it
2) set the second timebox again only using arrows
3) click on the button

Result: the first timebox does contain an empty value, while the second value is correctly setted.
Instead, using IE 7, both fields are correctly setted.

Discussion