[Xerte] Re: xerte - sound icon - play property - using an array value

Julian Tenney Julian.Tenney at nottingham.ac.uk
Mon Feb 27 12:37:24 GMT 2012


These are easy to add if you spot any other places.

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 27 February 2012 12:08
To: Xerte list
Subject: [Xerte] Re: xerte - sound icon - play property - using an array value



Works a treat.
Excellent!

________________________________
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Mon, 27 Feb 2012 08:05:52 +0000
Subject: [Xerte] Re: xerte - sound icon - play property - using an array value
The {} should work now: can you test it please.

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of KnowledgeWare
Sent: 24 February 2012 21:02
To: 'Xerte discussion list'
Subject: [Xerte] Re: xerte - sound icon - play property - using an array value

The {} don't seem to work, Eval doesn't force the value either. Using a script in a previous icon I'm sure would work but would mean a lot of coding and extra icons.

Any other creative way come to mind that I might be able to force this sound icon 'play' property to evaluate to 1 or 0 from afar, globally perhaps? Any kind a big hammer that I could try whacking this thing with?

RonM2

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: Friday, February 24, 2012 12:31 AM
To: Xerte discussion list
Subject: [Xerte] Re: xerte - sound icon - play property - using an array value

Did you try the expression in {}s?

Otherwise, you can set the value of the attribute using some script: in a script immediately before the sound icon do

If (someCOndition == true){
icon.nextSibling.attributes.play = '1';
} else {
icon.nextSibling.attributes.play = '0';
}


[cid:image001.png at 01CCF54C.8E4E7D90]

A checkbox on the main menu lets the user set the sound to play on entering each page (Play = 1). I'm holding this in the 'trackingData' array, however this seems to be a field that can't interpret the array value.


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/20120227/fb707359/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 11980 bytes
Desc: image001.png
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120227/fb707359/attachment-0001.png>


More information about the Xerte mailing list