<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
In an ASCII sense, yes that will work.<br>But I don't believe that will render as a &lt;BR&gt; within an HTML interpreter, if that's what the ultimate goal is.<br><br>Dave<br>&nbsp;<br><br><hr id="stopSpelling">From: ronm@mitchellmedia.co.uk<br>To: xerte@lists.nottingham.ac.uk<br>Subject: RE: [Xerte] rs.text<br>Date: Thu, 17 Sep 2009 12:07:13 +0100<br><br>






<style>
.ExternalClass p.EC_MsoNormal, .ExternalClass li.EC_MsoNormal, .ExternalClass div.EC_MsoNormal
{margin-bottom:.0001pt;font-size:11.0pt;font-family:'Calibri','sans-serif';}
.ExternalClass a:link, .ExternalClass span.EC_MsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.EC_MsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass p.EC_MsoListParagraph, .ExternalClass li.EC_MsoListParagraph, .ExternalClass div.EC_MsoListParagraph
{margin-right:0cm;margin-bottom:0cm;margin-left:36.0pt;margin-bottom:.0001pt;font-size:11.0pt;font-family:'Calibri','sans-serif';}
.ExternalClass span.EC_EmailStyle18
{font-family:'Calibri','sans-serif';color:windowtext;}
.ExternalClass span.EC_EmailStyle19
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass span.EC_EmailStyle20
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass span.EC_EmailStyle21
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass span.EC_EmailStyle22
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass span.EC_EmailStyle23
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass span.EC_EmailStyle24
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass span.EC_EmailStyle25
{font-family:'Calibri','sans-serif';color:#1F497D;}
.ExternalClass .EC_MsoChpDefault
{font-size:10.0pt;}
@page Section1
{size:612.0pt 792.0pt;}
.ExternalClass div.EC_Section1
{page:Section1;}
.ExternalClass ol
{margin-bottom:0cm;}
.ExternalClass ul
{margin-bottom:0cm;}
</style>





<div class="EC_Section1">

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);">Ok scrub that – works with
chr(13)</span></p>

<p class="EC_MsoNormal"><a name="_MailEndCompose"><span style="color: rgb(31, 73, 125);">&nbsp;</span></a></p>

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p class="EC_MsoNormal"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US"> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>RonM<br>
<b>Sent:</b> 17 September 2009 12:01<br>
<b>To:</b> 'Xerte discussion list'<br>
<b>Subject:</b> RE: [Xerte] rs.text</span></p>

</div>

</div>

<p class="EC_MsoNormal">&nbsp;</p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);">Hi Julian</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);">Sorry this is probably book 1
day 1 and I’m searching as we speak but I’m struggling for time. </span><span style="font-family: Wingdings; color: rgb(31, 73, 125);">L</span><span style="color: rgb(31, 73, 125);">
Now that this bit works I was trying to do System.setClipboard(myVariable1 +
“&lt;br&gt;” + myVariable2); which works in terms of pasting both
vars but doesn’t include the break when I paste. Do I need to use char
codes or something instead and if so what do I use to add carriage returns?</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);">Cheers</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);">Ron</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);">&nbsp;</span></p>

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p class="EC_MsoNormal"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US"> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>RonM<br>
<b>Sent:</b> 17 September 2009 11:30<br>
<b>To:</b> 'Xerte discussion list'<br>
<b>Subject:</b> RE: [Xerte] rs.text</span></p>

</div>

</div>

<p class="EC_MsoNormal">&nbsp;</p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);">Brilliant – thanks!</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);">&nbsp;</span></p>

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p class="EC_MsoNormal"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US"> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Julian Tenney<br>
<b>Sent:</b> 17 September 2009 10:27<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> RE: [Xerte] rs.text</span></p>

</div>

</div>

<p class="EC_MsoNormal">&nbsp;</p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);">System.setClipboard(myVariable);</span></p>

<p class="EC_MsoNormal"><span style="color: rgb(31, 73, 125);">&nbsp;</span></p>

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p class="EC_MsoNormal" style="margin-left: 36pt;"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">
xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>RonM<br>
<b>Sent:</b> Thursday, September 17, 2009 10:25 AM<br>
<b>To:</b> 'Xerte discussion list'<br>
<b>Subject:</b> RE: [Xerte] rs.text</span></p>

</div>

</div>

<p class="EC_MsoNormal" style="margin-left: 36pt;">&nbsp;</p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">Hi
Julian</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">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?</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">Cheers</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">Ron </span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">&nbsp;</span></p>

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p class="EC_MsoNormal" style="margin-left: 36pt;"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">
xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>RonM<br>
<b>Sent:</b> 15 June 2009 16:20<br>
<b>To:</b> 'Xerte discussion list'<br>
<b>Subject:</b> RE: [Xerte] rs.text</span></p>

</div>

</div>

<p class="EC_MsoNormal" style="margin-left: 36pt;">&nbsp;</p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">Thanks
Julian very helpful as always.</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">I’ll
give the array suggestion a try at some point.</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">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 - &nbsp;although I know that’s not called from an
LO.</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">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.</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">Cheers</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">Ron</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">&nbsp;</span></p>

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p class="EC_MsoNormal" style="margin-left: 36pt;"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">
xerte-bounces@lists.nottingham.ac.uk [mailto:xerte-bounces@lists.nottingham.ac.uk]
<b>On Behalf Of </b>Julian Tenney<br>
<b>Sent:</b> 15 June 2009 14:31<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> RE: [Xerte] rs.text</span></p>

</div>

</div>

<p class="EC_MsoNormal" style="margin-left: 36pt;">&nbsp;</p>

<p class="EC_MsoListParagraph" style="margin-left: 72pt; text-indent: -18pt;"><span style="color: rgb(31, 73, 125);"><span style="">1.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><span style="color: rgb(31, 73, 125);">I’d initialise
an array called tracking:</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">&nbsp;</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">If
(tracking == undefined)</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">{ </span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">&nbsp;
Tracking = new Array();</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">}</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">&nbsp;</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">And
then use the current page index to refernece the data slot:
tracking[rootIcon.currentPage] = ‘myInputText’;</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">&nbsp;</span></p>

<p class="EC_MsoListParagraph" style="margin-left: 72pt; text-indent: -18pt;"><span style="color: rgb(31, 73, 125);"><span style="">2.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><span style="color: rgb(31, 73, 125);">A) no. But you can
do a custom print job. Read up in the Flash referene for the PrintJob class I
think.</span></p>

<p class="EC_MsoListParagraph" style="margin-left: 72pt;"><span style="color: rgb(31, 73, 125);">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?</span></p>

<p class="EC_MsoListParagraph" style="margin-left: 72pt;"><span style="color: rgb(31, 73, 125);">&nbsp;</span></p>

<p class="EC_MsoListParagraph" style="margin-left: 72pt; text-indent: -18pt;"><span style="color: rgb(31, 73, 125);"><span style="">3.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span></span><span style="color: rgb(31, 73, 125);">Dunno. What does the
Flash help say on .multiline?</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">&nbsp;</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">&nbsp;</span></p>

<p class="EC_MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(31, 73, 125);">&nbsp;</span></p>

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p class="EC_MsoNormal" style="margin-left: 72pt;"><b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">From:</span></b><span style="font-size: 10pt; font-family: 'Tahoma','sans-serif';" lang="EN-US">
xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>RonM<br>
<b>Sent:</b> Monday, June 15, 2009 10:39 AM<br>
<b>To:</b> 'Xerte discussion list'<br>
<b>Subject:</b> [Xerte] rs.text</span></p>

</div>

</div>

<p class="EC_MsoNormal" style="margin-left: 72pt;">&nbsp;</p>

<p class="EC_MsoNormal" style="margin-left: 72pt;">Hi Julian/all</p>

<p class="EC_MsoNormal" style="margin-left: 72pt;">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: <a href="http://mitchellmedia.co.uk/xerte/compareAnswer">http://mitchellmedia.co.uk/xerte/compareAnswer</a>
However the reason for this message...</p>

<p class="EC_MsoNormal" style="margin-left: 72pt;">&nbsp;</p>

<p class="EC_MsoListParagraph" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 108pt; text-indent: -18pt;"><span style="">1.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>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?</p>

<p class="EC_MsoListParagraph" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 108pt; text-indent: -18pt;"><span style="">2.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span>Also are there existing functions I could use to: <br>
a) have a print button on the page rather than use the browser print menu<br>
b) have a save this response button – which creates a text file
containing the input text and example answer?<br>
I’m sure these options could be useful in lots of ways.</p>

<p class="EC_MsoListParagraph" style="margin-left: 108pt; text-indent: -18pt;"><span style="">3.<span style="font-family: &quot;Times New Roman&quot;; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal; -x-system-font: none;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span>I
vaguely recall this has been asked before – is there a way to enable
carriage returns in the input text box?</p>

<p class="EC_MsoNormal" style="margin-left: 72pt;">&nbsp;</p>

<p class="EC_MsoNormal" style="margin-left: 72pt;">Cheers</p>

<p class="EC_MsoNormal" style="margin-left: 72pt;">Ron </p>

</div><br /><hr />Hotmail: Powerful Free email with security by Microsoft. <a href='http://clk.atdmt.com/GBL/go/171222986/direct/01/' target='_new'>Get it now.</a></body>
</html>