<html dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</style>
<meta content="MSHTML 6.00.6000.17080" name="GENERATOR">
<style id="owaTempEditStyle"></style>
</head>
<body class="hmmessage" ocsi="x">
<div style="FONT-SIZE: 13px; COLOR: #000000; DIRECTION: ltr; FONT-FAMILY: Tahoma">
<div>are you debugging out the various bits and seeing what you expect?</div>
<div><font face="tahoma"></font> </div>
<div><font face="tahoma">inspect() reveal anything?</font></div>
<div><font face="tahoma"></font> </div>
<div><font face="tahoma">Might be a timing issue - can you manually do that later, just to see?</font></div>
<div dir="ltr"><font face="Tahoma" color="#000000" size="2"></font> </div>
<div id="divRpF461789" style="DIRECTION: ltr">
<hr tabindex="-1">
<font face="Tahoma" color="#000000" size="2"><b>From:</b> xerte-bounces@lists.nottingham.ac.uk [xerte-bounces@lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett@hotmail.com]<br>
<b>Sent:</b> 29 September 2010 20:20<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> RE: [Xerte] check then disable checkbox<br>
</font><br>
</div>
<div></div>
<div><br>
I bumbled across this which appears to work:<br>
<br>
tempNode.attributes.rs = 'cbox' + icon.parentNode.index() + i;<br>
cboxArray.push(tempNode.attributes.rs);<br>
engine[cboxArray[0]].setCheckState(true);<br>
engine[cboxArray[0]].setEnabled(false);<br>
<br>
<br>
Now of course I can't finds the syntax or casting that will take a dynamic index in the cboxArray<br>
<br>
e.g. <br>
engine[cboxArray[0]].setCheckState(true); //works<br>
engine[cboxArray[cboxArray.length-1]].setCheckState(true); //doesn't<br>
<br>
<br>
I hate AS.<br>
<br>
<br>
<hr id="stopSpelling">
From: Julian.Tenney@nottingham.ac.uk<br>
To: xerte@lists.nottingham.ac.uk<br>
Date: Wed, 29 Sep 2010 20:13:10 +0100<br>
Subject: RE: [Xerte] check then disable checkbox<br>
<br>
<style>.ExternalClass .ecxhmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px
}
.ExternalClass BODY.ecxhmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</style><style></style><style title="owaParaStyle"><!--.ExternalClass P {
        MARGIN-BOTTOM: 0px
}
--></style>
<div style="FONT-SIZE: 13px; COLOR: rgb(0,0,0); DIRECTION: ltr; FONT-FAMILY: Tahoma">
<div>only buttons do setChecked. The checkbox is a checkbox, not a button, i.e. it's not based on the buttontemplate.fla</div>
<div dir="ltr"><font face="Tahoma" color="#000000" size="2"></font> </div>
<div id="ecxdivRpF32058" style="DIRECTION: ltr">
<hr>
<font face="Tahoma" color="#000000" size="2"><b>From:</b> xerte-bounces@lists.nottingham.ac.uk [xerte-bounces@lists.nottingham.ac.uk] On Behalf Of Dave Burnett [d_b_burnett@hotmail.com]<br>
<b>Sent:</b> 29 September 2010 17:25<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> RE: [Xerte] check then disable checkbox<br>
</font><br>
</div>
<div></div>
<div><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">>Then after the icons have been parsed you know how to get at them. I think you know / do that already?</span><br>
<br>
Yes, doing that.<br>
<br>
But it bugs me why this is taking place:<br>
<br>
<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">icon.nextSibling.firstChild.duplicate(x);<br>
</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">tempNode.attributes.label = data.question[blah[i]];</span><br>
//set a dynamic rs<br>
tempNode.attributes.rs = 'cbox' + icon.parentNode.index() + i;<br>
<br>
//push that rs into an array<br>
cboxArray.push(tempNode.attributes.rs);<br>
<br>
//address the rs via engine<br>
<br>
engine[cboxArray[0]].setChecked(true,false); // does not work.<br>
<br>
engine[cboxArray[0]].setEnabled(false); //works, sets checkbox disabled<br>
<br>
I would have expected failures of both or neither<br>
<br>
:-?<br>
<br>
<br>
<br>
<br>
<hr id="ecxstopSpelling">
<div class="ecxWordSection1"><br>
<p class="ecxMsoNormal"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<p class="ecxMsoNormal"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"><br>
</span></p>
<p class="ecxMsoNormal"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<p class="ecxMsoNormal"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></span> </p>
<p class="ecxMsoNormal"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></span> </p>
<div>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p class="ecxMsoNormal" style="MARGIN-LEFT: 36pt"><b><span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</span></b><span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave Burnett<br>
<b>Sent:</b> 29 September 2010 16:40<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> RE: [Xerte] check then disable checkbox</span></p>
</div>
</div>
<p class="ecxMsoNormal" style="MARGIN-LEFT: 36pt"> </p>
<p class="ecxMsoNormal" style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm">
<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">Thanks Julian. I may be going at this all backwards though.<br>
<br>
Proto checkbox gets duped x times<br>
<br>
icon.nextSibling.firstChild.duplicate(x);<br>
<br>
Then next line of code sets checkbox labels<br>
tempNode.attributes.label = data.question[blah[i]];<br>
<br>
At this same stage should I also be able to set rs, then checked/enabled using the rs value?<br>
<br>
<br>
<br>
<br>
<br>
</span></p>
<div class="ecxMsoNormal" style="MARGIN-LEFT: 36pt; TEXT-ALIGN: center" align="center">
<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">
<hr id="ecxstopSpelling" align="center" width="100%" size="2">
</span></div>
<p class="ecxMsoNormal" style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 36pt; MARGIN-RIGHT: 0cm">
<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From: Julian.Tenney@nottingham.ac.uk<br>
To: xerte@lists.nottingham.ac.uk<br>
Date: Wed, 29 Sep 2010 15:11:50 +0100<br>
Subject: RE: [Xerte] check then disable checkbox</span></p>
<div>
<p class="ecxMsoNormal" style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'">Go get the latest build from
<a href="http://www.nottingham.ac.uk/xerte/downloads/setup.exe" target="_blank">http://www.nottingham.ac.uk/xerte/downloads/setup.exe</a> and you’ll find what you’re looking for.</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
<p class="ecxMsoNormal" style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 11pt; COLOR: rgb(31,73,125); FONT-FAMILY: 'Calibri','sans-serif'"></span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<div>
<div style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0cm; BORDER-TOP: 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<p class="ecxMsoNormal" style="MARGIN-LEFT: 72pt"><b><span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</span></b><span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Dave Burnett<br>
<b>Sent:</b> 29 September 2010 14:33<br>
<b>To:</b> Xerte list<br>
<b>Subject:</b> [Xerte] check then disable checkbox</span><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span></p>
</div>
</div>
<p class="ecxMsoNormal" style="MARGIN-LEFT: 72pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"></span> </p>
<p class="ecxMsoNormal" style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 72pt; MARGIN-RIGHT: 0cm">
<span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">Probably missing something obvious as I'm re-wrapping my head after holidays.<br>
<br>
Button off interaction has visible/enabled property.<br>
Not available for checkboxes, or is it inherited from superclass or something?</span></p>
</div>
<p class="ecxMsoNormal" style="MARGIN-LEFT: 36pt"><span style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'"><br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information
contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.
<br>
This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be
monitored as permitted by UK legislation. <br>
<br>
_______________________________________________ Xerte mailing list Xerte@lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information.
If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email
do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own
checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
</span></p>
</div>
<br>
_______________________________________________ Xerte mailing list Xerte@lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information.
If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email
do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own
checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
</div>
</div>
<br>
_______________________________________________ Xerte mailing list Xerte@lists.nottingham.ac.uk http://lists.nottingham.ac.uk/mailman/listinfo/xerte This message and any attachment are intended solely for the addressee and may contain confidential information.
If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email
do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own
checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
</div>
</div>
</body>
</html>