[Xerte] Variables in properties...

Paul Beckwith paul.beckwith at acns-group.com
Fri Oct 9 14:50:30 BST 2009


Cool, works fine J

 

Thanks mate, that one was driving me mad!

 

Paul 

 

 

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 09 October 2009 13:58
To: Xerte discussion list
Subject: RE: [Xerte] Variables in properties...

 

In the submit button

 

for (i = 0; i < inter.responses.length - 1; i++)

{

  inter.responses[i].setEnabled(false);

}

 

Where inter is the interaction ID - this assumes an interaction with all
radios (that you wat to disable) and a submit button (where this code is)

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Beckwith
Sent: Friday, October 09, 2009 1:27 PM
To: 'Xerte discussion list'
Subject: RE: [Xerte] Variables in properties...

 

Still trying with this radio button thing in the multiple choice question
model.

 

Basically I'm trying to name the prototype ID to "ID+counter". Then every
time  a new prototype is created, the counter is incremented (already done
that bit).

 

So when my radio buttons are created I want to have icon ID's like:

 

ID1

ID2

ID3

ID4

 

Then I can address each radio button separately..

 

:-s

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 09 October 2009 13:10
To: Xerte discussion list
Subject: RE: [Xerte] Variables in properties...

 

What are you trying to do.?

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Paul Beckwith
Sent: Friday, October 09, 2009 12:58 PM
To: 'Xerte discussion list'
Subject: [Xerte] Variables in properties...

 

Is it possible to name a property using a variable in Xerte? 

 

I've already tried:

 

var myTitle = "come on, please work Mr Xerte thing";

 

 Page Title:  {myTitle}

 

(Didn't work)

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20091009/3d96ca98/attachment.html


More information about the Xerte mailing list