[Xerte] rs.text
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Thu Sep 17 10:26:41 BST 2009
System.setClipboard(myVariable);
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of RonM
Sent: Thursday, September 17, 2009 10:25 AM
To: 'Xerte discussion list'
Subject: RE: [Xerte] rs.text
Hi Julian
I revisited this template I was working on back in June and got the
tracking working fine thanks. In doing so I seem to remember you have
something built-in to one or more of the controllers to copy sync points
to the clipboard so I wondered if there is a way I can include a button
in a page which when clicked copies some variable text to the clipboard?
Cheers
Ron
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of RonM
Sent: 15 June 2009 16:20
To: 'Xerte discussion list'
Subject: RE: [Xerte] rs.text
Thanks Julian very helpful as always.
I'll give the array suggestion a try at some point.
I guess I was really asking if all this already existed eg. a print
button and/or a function in some of the existing php code to call and
pass the text info which pops up a link to open or save the file a bit
like what happens now with export creating a zip - although I know
that's not called from an LO.
Likewise we're able to add carriage returns using the editor so thought
it might be possible when playing the piece too. Again I'll have a look
at some point.
Cheers
Ron
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 15 June 2009 14:31
To: Xerte discussion list
Subject: RE: [Xerte] rs.text
1. I'd initialise an array called tracking:
If (tracking == undefined)
{
Tracking = new Array();
}
And then use the current page index to refernece the data slot:
tracking[rootIcon.currentPage] = 'myInputText';
2. A) no. But you can do a custom print job. Read up in the Flash
referene for the PrintJob class I think.
B) How will you save the txt file? Getting the text is easy, making a
button is easy, then pass the text thorough to a php file that saves the
file?
3. Dunno. What does the Flash help say on .multiline?
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of RonM
Sent: Monday, June 15, 2009 10:39 AM
To: 'Xerte discussion list'
Subject: [Xerte] rs.text
Hi Julian/all
I was asked by a colleague about the stimulating question template and
if there was a version where the user could type a response and then hit
the button to see a pre-prepared exemplar answer. So very similar to the
existing template except with an input textbox. I thought I'm sure I
could quickly tweak/build that and so did, although I struggled to work
out how to use the rs property of the textbox at first. I also wanted
the textbox to retain whatever was entered when the user browses past
and then back to that page which was fine I got that to work too. You
can see an example at: http://mitchellmedia.co.uk/xerte/compareAnswer
However the reason for this message...
1. I then realised that the way I coded this if another page based
on the template is added to the same LO the answer entered/stored in the
first example is also displayed in the second example. However I can't
work out how to make the rs property name dynamic and so to store and
display different text in however many pages of this type are added?
2. Also are there existing functions I could use to:
a) have a print button on the page rather than use the browser print
menu
b) have a save this response button - which creates a text file
containing the input text and example answer?
I'm sure these options could be useful in lots of ways.
3. I vaguely recall this has been asked before - is there a way to
enable carriage returns in the input text box?
Cheers
Ron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20090917/6c03b073/attachment.html
More information about the Xerte
mailing list