I have a Qty NumberSpinner widjet on my UI.
Next to it I have a select List of some options, based upon the selection they Pick I need to adjust the constraints on the NumberSpinner.
I have set the attribute and I can see it is set in Firebug. But once I set It I get Error Messages in my FireBug Log and the constraints do not work.
Error: invalid 'in' operand _1c
Source File: http://o.aolcdn.com/dojo/1.1.0/dijit/form/ValidationTextBox.xd.js
Line: 12
So it appears I can't just change the attribute so any thoughts would be helpful.
TIA
Jeff

Change NumberSpinner min/max based on another Spinner
I use dojo.mixin() to change the constraints at runtime.
Here's an example where I have two NumberSpinners whose min and max change when the other spinner changes. If the 'required' property isn't set and the user clears the textbox, then onChange will get passed something that's not a number.
var spinnerHigh = dojo.byId('spinnerHigh');
var spinnerLowParams = {
onChange: function(e){
if (isNaN(e))
dojo.mixin(spinnerHigh.constraints, {min: -2147483648}
else
dojo.mixin(spinnerHigh.constraints, {min: e}
},
constraints: {min: -2147483648, max: 2147483647}
};
var spinnerHighParams = {
onChange: function(e){
if (isNaN(e))
dojo.mixin(spinnerLow.constraints, {max: 2147483647}
else
dojo.mixin(spinnerLow.constraints, {max: e}
},
constraints: {min: -2147483648, max: 2147483647}
};
var dojoSpinnerLow = dojo.form.NumberSpinner(spinnerLowParams, spinnerLow);
var dojoSpinnerHigh = dojo.form.NumberSpinner(spinnerHighParams, spinnerHigh);
dojoSpinnerLow.startup();
dojoSpinnerHigh.startup();