-
FEATURED COMPONENTS
First time here? Check out the FAQ!
The error appears when I apply the format #,##0.00000000000; just try the following in the online zk sandbox:
<window title="My First Window" border="normal" width="200px">
<doublebox onChange='alert( "onChange" );' width="150px" />
<doublebox format="#,##0.00000000000" onChange='alert( "onChange" );' width="150px" />
<decimalbox format="#,##0.00000000000" onChange='alert( "onChange" );' width="150px" />
</window>
The first input field is a doublebox with no format; it will do ok. A decimal box displaying the aforementioned format will also do ok; the formatted doublebox won't trigger the onChange event if numbers lower than 1.0E-6 are typed; the js console will show
Időbélyeg: 25/04/2013 11:33:20
Hiba: ReferenceError: varStr is not defined
Forrásfájl: http://www.zkoss.org/zksandbox/macros/zksandbox.js.dsp;jsessionid=57D671ABCEE63B310D5886DFAEAFDA7F.zktest?v=2013032614
Sor: 6
I've copied this error from my ff console, but it fails on ie the same way.
If I try this with <debug-js>true</debug-js> it will fail on this line
var nind = (indVal < 0 ? varStr.length : indVal) + shift;
I'm using FF 20.01, IE9 and zk 6.5.2.
After debugging a little I think it must be a typo, for a few lines above the following declarations are to be seen:
var pureFmtStr = efmt.pureFmtStr,
ind = efmt.purejdot,
fixed = ind >= 0 ? pureFmtStr.length - ind - 1 : 0,
valStr = (val + '').replace(/[^e\-0123456789.]/g, '').substring(val < 0 ? 1 : 0), ...
in other words,
var nind = (indVal < 0 ? varStr.length : indVal) + shift;
should read
var nind = (indVal < 0 ? valStr.length : indVal) + shift;
Asked: 2013-04-25 10:49:06 +0800
Seen: 12 times
Last updated: Apr 25 '13
AutoComplete Combobox usage and requirements
Source code of page dosen't change when usinge an Include
label in org.zkoss.zul.Messagebox must be middle aligned [closed]
Multiple date constraint prevents calendar days from getting disabled [closed]
how to increse the font size of a TAB label
onChanging event not everytime fired in Combobox
Session.invalidate() raises an IllegalStateException under Jetty