<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1226" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=318564213-02102003>IE has
it</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=318564213-02102003></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><A
href="http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/indeterminate.asp">http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/indeterminate.asp</A></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=318564213-02102003><FONT face=Arial color=#0000ff size=2>I've
used it in our (IE 5+ only) application. Our application of it looks
similar to the checked tree view in VB.Net. There is a category that has a
checkbox and under it are values that each have a check. If you check
the category, all of the values get checked. If you check a value and it
turns out that you have now checked all of the values, the category gets
checked. If some of the values are checked and some are not, the checkbox is set
indeterminate. So the category check box is not checked and neither are
any of the values, they are all checked or some of the values are checked and
the category is checked indeterminate. Here is a little
snippet.</FONT></SPAN></DIV>
<DIV><SPAN class=318564213-02102003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=318564213-02102003><FONT face=Arial color=#0000ff
size=2> // went through all of the child checks and they all match
compareState (true or false) so set the parent check to match
compareState<BR> if ( ! allChildChecksMatch
)<BR> {<BR> topCheck.indeterminate =
false;<BR> topCheck.checked =
compareState;<BR> }<BR> else<BR> {<BR> topCheck.indeterminate
= true;<BR> }<BR></FONT></SPAN><SPAN class=318564213-02102003><FONT
face=Arial color=#0000ff size=2></DIV></FONT></SPAN>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Dan Costea
[mailto:costea.dan@ssi-schaefer.ro]<BR><B>Sent:</B> Thursday, October 02, 2003
1:22 AM<BR><B>To:</B> javascript@LaTech.edu<BR><B>Subject:</B> [Javascript]
intermediate state of a checkbox<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2> Hi to all!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>How can I set from JavaScript the intermediate
state of a checkbox? (see pic. from attachment to see what I mean
with "intermediate state")</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thank you,</FONT></DIV>
<DIV><FONT face=Arial size=2>Dan Costea.</FONT></DIV></BLOCKQUOTE></BODY></HTML>