[Xerte] rs.text

RonM ronm at mitchellmedia.co.uk
Mon Jun 15 10:39:07 BST 2009


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/e884176d/attachment.html


More information about the Xerte mailing list