[Project_owners] help button checkbox

pike pike-mozdev at kw.nl
Tue Mar 7 01:07:51 EST 2006


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



More information about the Project_owners mailing list