<!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>&nbsp;</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>&nbsp;</DIV>
<DIV><SPAN class=318564213-02102003><FONT face=Arial color=#0000ff size=2>I've 
used it in our (IE 5+ only) application.&nbsp; Our application of it&nbsp;looks 
similar to the checked tree view in VB.Net.&nbsp; There is a category that has a 
checkbox and under it&nbsp;are values that each have a check.&nbsp; If you check 
the category, all of the values get checked.&nbsp; 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.&nbsp; 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.&nbsp; Here is a little 
snippet.</FONT></SPAN></DIV>
<DIV><SPAN class=318564213-02102003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=318564213-02102003><FONT face=Arial color=#0000ff 
size=2>&nbsp;// went through all of the child checks&nbsp;and they all match 
compareState (true or false)&nbsp;so&nbsp;set the parent check to match 
compareState<BR>&nbsp;if ( !&nbsp;allChildChecksMatch 
)<BR>&nbsp;{<BR>&nbsp;&nbsp;topCheck.indeterminate = 
false;<BR>&nbsp;&nbsp;topCheck.checked = 
compareState;<BR>&nbsp;}<BR>&nbsp;else<BR>&nbsp;{<BR>&nbsp;&nbsp;topCheck.indeterminate 
= true;<BR>&nbsp;}<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>&nbsp;&nbsp;&nbsp; Hi to all!</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>How can I set from JavaScript the intermediate 
  state of a checkbox? (see&nbsp;pic. from attachment&nbsp;to see what I mean 
  with "intermediate state")</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Thank you,</FONT></DIV>
  <DIV><FONT face=Arial size=2>Dan Costea.</FONT></DIV></BLOCKQUOTE></BODY></HTML>