Login Register

places

NumberTextBox floating point behavior

Hi,

My first time using dojo and dijit and I am having problems with the behavior of a NumberTextBox widget which I hope someone can help me with. The dijit text box is created entirely with javascript code and what I would like it to do is to allow the user to enter a number between -180 and 180 with, optionally, up to 6 decimal places. Here is what I have :

new dijit.form.NumberTextBox({style:"width: 100px",
promptMessage: "Enter a value between -180 and 180",
rangeMessage: "Longitude out of range",

Syndicate content