[Xerte] check then disable checkbox
Dave Burnett
d_b_burnett at hotmail.com
Wed Sep 29 17:25:27 BST 2010
>Then
after the icons have been parsed you know how to get at them. I think you know
/ do that already?
Yes, doing that.
But it bugs me why this is taking place:
icon.nextSibling.firstChild.duplicate(x);
tempNode.attributes.label = data.question[blah[i]];
//set a dynamic rs
tempNode.attributes.rs = 'cbox' + icon.parentNode.index() + i;
//push that rs into an array
cboxArray.push(tempNode.attributes.rs);
//address the rs via engine
engine[cboxArray[0]].setChecked(true,false); // does not work.
engine[cboxArray[0]].setEnabled(false); //works, sets checkbox disabled
I would have expected failures of both or neither
:-?
From:
xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 29 September 2010 16:40
To: Xerte list
Subject: RE: [Xerte] check then disable checkbox
Thanks
Julian. I may be going at this all backwards though.
Proto checkbox gets duped x times
icon.nextSibling.firstChild.duplicate(x);
Then next line of code sets checkbox labels
tempNode.attributes.label = data.question[blah[i]];
At this same stage should I also be able to set rs, then checked/enabled using
the rs value?
From:
Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Wed, 29 Sep 2010 15:11:50 +0100
Subject: RE: [Xerte] check then disable checkbox
Go get the latest build from http://www.nottingham.ac.uk/xerte/downloads/setup.exe
and you’ll find what you’re looking for.
From:
xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 29 September 2010 14:33
To: Xerte list
Subject: [Xerte] check then disable checkbox
Probably
missing something obvious as I'm re-wrapping my head after holidays.
Button off interaction has visible/enabled property.
Not available for checkboxes, or is it inherited from superclass or something?
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.
_______________________________________________ Xerte mailing list
Xerte at 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.
_______________________________________________
Xerte mailing list
Xerte at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20100929/9765b536/attachment.html
More information about the Xerte
mailing list