[Project_owners] help button checkbox

Eric H. Jung grimholtz at yahoo.com
Mon Mar 6 17:08:14 EST 2006


Hi Pike,

Results are too bizarre to post. I must be on drugs or something. Anyway, thanks for the idea. I'm
just going to use a regular <button/> without CSS and manage everything with javascript :(

BTW, I don't know if tristate buttons apply to this: seems to be a button checkbox only has two
states, no?


--- pike <pike-mozdev at kw.nl> wrote:

> Hi
> 
> 
> > <button id="enabledBtn" type="checkbox" label="disabled" checked="false" accesskey="E" 
> >  
> oncommand="this.label=this.checked?'enabled':'disabled';foxyproxy.setEnabled(this.checked);"/>
> 
> > button[checked="true"] {
> >   color: red;
> >   font-weight: bold;
> > }
> 
> notice your css matches the attribute and your javascript
> matches the property. they may not (or are apparently not)
> in sync.
> 
> could you try a
> 
> <button label="what??"
> oncommand="alert(document.getElementById('enabledBtn').getAttribute('checked'))"/>
> 
> too see if I'm right ?
> 
> also notice the 'tristatebutton' is not completely done yet
> https://bugzilla.mozilla.org/show_bug.cgi?id=119628
> so you may have found an open bug
> 
> $2c,
> *pike
> 
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
> 



More information about the Project_owners mailing list