On Wednesday, August 24, 2011 7:19:12 PM UTC-4, ryo1kato wrote:
>
> > Yes, using <label> will make the labels clickable, but won't do dynamic
> > style updating. I like the idea of dynamic styling, but just not sure it
> > belongs in the core framework code -- then users who don't like it or 
> want
> > to implement it differently will have to disable it. Maybe if it's 
> optional,
> > and the code is relatively simple.
> That's sounds reasonable. Core could should be kept simple.
>
> But, is there easy way to do dynamic style update without modifying 
> sqlhtml.py?
> (Of course I can if I completely rewrite my own widget...)
> How about putting callbacks and class:
>    LABEL(INPUT(..., _class=XXX, _onclick=YYY), _class=xxx, _onclick=yyy, 
> ...)
>
I think it should be easy to do entirely on the client side with jQuery. For 
example, 
http://stackoverflow.com/questions/3308037/jquery-checkbox-css-change. 
There's no need for an onclick attribute in the label or input elements -- 
jQuery can detect clicks.
 
Anthony

Reply via email to