[Xerte] rs.text
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Mon Jun 15 14:31:26 BST 2009
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/20090615/e05b8e31/attachment.html
More information about the Xerte
mailing list