Hey,
I think thats nothing you should cover in the validation. Thats something could
easily covered by a even listener and thats it. Just check on every input event
if you need to disable / enable the button.
Best,
Martin
Am 31.08.2010 um 11:08 schrieb Stefan Andersson:
I have a form with 10 fields. I want to check if all the fields are empty at
any time. A button called "clean" will then be disabled or enabled depending on
if any field is non-empty.
If the user inputs something to any of the fields, then the "clean" button
shall be enabled. You don't want to clean empty fields cause it is unnecessary.
I thought it was possible to link to the validation classes by binding.
Is it possible? if not, any other solution?
Stefan
Hey,
I'm sorry but what are you trying to do? You want to hand the input event of
the validator? There is no input event for the validator. Could you pleas
explain in detail what you want to achieve?
Regards,
Martin
Am 30.08.2010 um 12:53 schrieb Stefan Andersson:
Is there a way to listen to any input through the valida
validator.bind("valid", this.__submitB, "enabled");
and instead
validator.bind("input", this.__cleanB, "enabled");
then the clean button will change state.
Any advice!
Stefan
<ATT00001..txt><ATT00002..txt>
<ATT00001..txt><ATT00002..txt>
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:
Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel