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 <[EMAIL PROTECTED]> 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
> [email protected]
> http://mozdev.org/mailman/listinfo/project_owners
> 

_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to