<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Verdana","sans-serif";
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-GB link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:blue'>If you’re using the page model method, you could make a new model
and distribute?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:blue'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal style='margin-left:36.0pt'><b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <b>On Behalf Of </b>Peter
Huppertz<br>
<b>Sent:</b> 15 April 2009 12:34<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> Solution: [Xerte] How to handle wrong text entries<o:p></o:p></span></p>

</div>

<p class=MsoNormal style='margin-left:36.0pt'><o:p>&nbsp;</o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:
12.0pt;margin-left:36.0pt'><span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Just
if some else needs this:</span> <br>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I created
another event in mainInteraction which listens for onClosePage. If the page is
closed a script is called containing the following code:</span> <br>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>gapXML=gapInt.XMLElement;
//ID of the main interaction</span> <br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>for(i=0;
i&lt;gapXML.childNodes.length; i++){</span> <br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp;
&nbsp;if(gapXML.childNodes[i].attributes.type == &quot;textEntry&quot;){
//check if we have a text entry element</span> <br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp; &nbsp;
&nbsp; if(gapXML.childNodes[i].attributes.phrase ==
gapXML.childNodes[i].clip().text){ //check if the text of text entry is equal
to the phrase you want</span> <br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp; &nbsp;
&nbsp; &nbsp; &nbsp;debug(&quot;correct&quot;); //do something with this
information.</span> <br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp; &nbsp;
&nbsp; }</span> <br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>&nbsp; &nbsp;}</span>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>}</span> <br>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>I'm going to
add the functionality for case sensitivity and than, hopefully I'm done ... so
less code, so much time.</span> <br>
<br>
<span style='font-size:10.0pt;font-family:"Arial","sans-serif"'>Peter</span> <br>
<br>
<o:p></o:p></p>

<table class=MsoNormalTable border=0 cellpadding=0 width="100%"
 style='width:100.0%;margin-left:36.0pt'>
 <tr>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
  color:#5F5F5F'>From:</span> <o:p></o:p></p>
  </td>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif"'>Patrick
  Lockley &lt;Patrick.Lockley@nottingham.ac.uk&gt;</span> <o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
  color:#5F5F5F'>To:</span> <o:p></o:p></p>
  </td>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif"'>&quot;Xerte
  discussion list&quot; &lt;xerte@lists.nottingham.ac.uk&gt;</span> <o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
  color:#5F5F5F'>Date:</span> <o:p></o:p></p>
  </td>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif"'>15.04.2009
  12:36</span> <o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
  color:#5F5F5F'>Subject:</span> <o:p></o:p></p>
  </td>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif"'>RE:
  [Xerte] How to handle wrong text entries</span> <o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif";
  color:#5F5F5F'>Sent by:</span> <o:p></o:p></p>
  </td>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial","sans-serif"'>xerte-bounces@lists.nottingham.ac.uk</span><o:p></o:p></p>
  </td>
 </tr>
</table>

<p class=MsoNormal style='margin-left:36.0pt'><o:p>&nbsp;</o:p></p>

<div class=MsoNormal align=center style='margin-left:36.0pt;text-align:center'>

<hr size=2 width="100%" noshade style='color:#9D9DA1' align=center>

</div>

<p class=MsoNormal style='margin-left:36.0pt'><br>
<br>
<br>
<span style='font-family:"Verdana","sans-serif";color:blue'>You’ve reached the
end of my knowledge at this point.</span> <br>
<span style='font-family:"Verdana","sans-serif";color:blue'>&nbsp;</span> <br>
<span style='font-family:"Verdana","sans-serif";color:blue'>When xerte creates
the textfields when the pages opens, is it possible to store a reference to
them in an array – loop over that later?</span> <br>
<span style='font-family:"Verdana","sans-serif";color:blue'>&nbsp;</span> <br>
<b><span style='font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-family:"Tahoma","sans-serif"'> xerte-bounces@lists.nottingham.ac.uk
[</span><a href="mailto:xerte-bounces@lists.nottingham.ac.uk"><span
style='font-family:"Tahoma","sans-serif"'>mailto:xerte-bounces@lists.nottingham.ac.uk</span></a><span
style='font-family:"Tahoma","sans-serif"'>] <b>On Behalf Of </b>Peter Huppertz<b><br>
Sent:</b> 15 April 2009 11:17<b><br>
To:</b> Xerte discussion list<b><br>
Subject:</b> RE: [Xerte] How to handle wrong text entries</span> <br>
&nbsp; <br>
<span style='font-family:"Arial","sans-serif"'>Yes, I could add an onPageClose
event and evaluate the answers than. I can get the correct answers reading the
phrase attribute, but how can I get the values of the textfields (gaps).</span>
<br>
<span style='font-family:"Arial","sans-serif"'><br>
Peter</span> <o:p></o:p></p>

<table class=MsoNormalTable border=0 cellpadding=0 width="100%"
 style='width:100.0%;margin-left:36.0pt'>
 <tr>
  <td width="13%" valign=top style='width:13.02%;padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#5F5F5F'>From:</span>
  <o:p></o:p></p>
  </td>
  <td width="86%" valign=top style='width:86.04%;padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>Patrick
  Lockley &lt;Patrick.Lockley@nottingham.ac.uk&gt;</span> <o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#5F5F5F'>To:</span>
  <o:p></o:p></p>
  </td>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>&quot;Xerte
  discussion list&quot; &lt;xerte@lists.nottingham.ac.uk&gt;</span> <o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#5F5F5F'>Date:</span>
  <o:p></o:p></p>
  </td>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>15.04.2009
  11:51</span> <o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#5F5F5F'>Subject:</span>
  <o:p></o:p></p>
  </td>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>RE: [Xerte]
  How to handle wrong text entries</span> <o:p></o:p></p>
  </td>
 </tr>
 <tr>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-family:"Arial","sans-serif";color:#5F5F5F'>Sent
  by:</span> <o:p></o:p></p>
  </td>
  <td valign=top style='padding:.75pt .75pt .75pt .75pt'>
  <p class=MsoNormal><span style='font-family:"Arial","sans-serif"'>xerte-bounces@lists.nottingham.ac.uk</span><o:p></o:p></p>
  </td>
 </tr>
</table>

<p style='margin-left:36.0pt'><br>
&nbsp; <o:p></o:p></p>

<p class=MsoNormal align=center style='margin-left:36.0pt;text-align:center'><o:p>&nbsp;</o:p></p>

<div class=MsoNormal align=center style='margin-left:36.0pt;text-align:center'>

<hr size=2 width="100%" noshade style='color:#9D9DA1' align=center>

</div>

<p class=MsoNormal style='mso-margin-top-alt:0cm;margin-right:0cm;margin-bottom:
12.0pt;margin-left:36.0pt'><br>
<br>
<br>
<span style='font-family:"Verdana","sans-serif";color:blue'><br>
Maybe change how it works – don’t evaluate the answers until you have to, then
check the answers?</span> <span style='font-family:"Verdana","sans-serif";
color:blue'><br>
</span>&nbsp;<b><span style='font-family:"Tahoma","sans-serif"'><br>
From:</span></b><span style='font-family:"Tahoma","sans-serif"'>
xerte-bounces@lists.nottingham.ac.uk [</span><a
href="mailto:xerte-bounces@lists.nottingham.ac.uk"><span style='font-family:
"Tahoma","sans-serif"'>mailto:xerte-bounces@lists.nottingham.ac.uk</span></a><span
style='font-family:"Tahoma","sans-serif"'>] <b>On Behalf Of </b>Peter Huppertz<b><br>
Sent:</b> 15 April 2009 10:28<b><br>
To:</b> Xerte discussion list<b><br>
Subject:</b> RE: [Xerte] How to handle wrong text entries</span> <br>
&nbsp;<span style='font-family:"Arial","sans-serif"'><br>
Hi Patrick, <br>
<br>
see my remarks below:</span> <span style='font-family:"Courier New"'><br>
<br>
xerte-bounces@lists.nottingham.ac.uk wrote on 15.04.2009 11:15:03:<br>
<br>
&gt; From:</span> <span style='font-family:"Courier New"'><br>
&gt; <br>
&gt; Patrick Lockley &lt;Patrick.Lockley@nottingham.ac.uk&gt;</span> <span
style='font-family:"Courier New"'><br>
&gt; <br>
&gt; To:</span> <span style='font-family:"Courier New"'><br>
&gt; <br>
&gt; &quot;Xerte discussion list&quot; &lt;xerte@lists.nottingham.ac.uk&gt;</span>
<span style='font-family:"Courier New"'><br>
&gt; <br>
&gt; Date:</span> <span style='font-family:"Courier New"'><br>
&gt; <br>
&gt; 15.04.2009 11:20</span> <span style='font-family:"Courier New"'><br>
&gt; <br>
&gt; Subject:</span> <span style='font-family:"Courier New"'><br>
&gt; <br>
&gt; RE: [Xerte] How to handle wrong text entries</span> <span
style='font-family:"Courier New"'><br>
&gt; <br>
&gt; Sent by:</span> <span style='font-family:"Courier New"'><br>
&gt; <br>
&gt; xerte-bounces@lists.nottingham.ac.uk</span> <span style='font-family:"Courier New"'><br>
&gt; <br>
&gt; Why not static the text field once the answer is correct?</span> <span
style='font-family:"Courier New"'><br>
<br>
I can do that, if there is no other solution. But making the TextField static
would already be an (unwanted) feedback.</span> <span style='font-family:"Courier New"'><br>
<br>
&gt; Or give it a property called correct and once that is true don’t add<br>
&gt; any more scores?</span> <span style='font-family:"Courier New"'><br>
<br>
I can do that, but I have to reset this property, if the user changes his mind
and thus changes the content of the gap. How can I detect this?</span> <span
style='font-family:"Courier New"'><br>
<br>
&gt; &nbsp;</span> <span style='font-family:"Courier New"'><br>
&gt; I’m not that good at xwd stuff so I am not sure how easy that is.</span> <span
style='font-family:"Courier New"'><br>
<br>
I think the xwd side of things is OK (so I can set the property to disable the
feedback and can get the value in Xerte).</span> <span style='font-family:"Courier New"'><br>
<br>
Peter</span> <span style='font-family:"Courier New"'><br>
<br>
&gt; &nbsp;</span> <span style='font-family:"Courier New"'><br>
&gt; From: xerte-bounces@lists.nottingham.ac.uk [</span><a href="mailto:xerte-"><span
style='font-family:"Courier New"'>mailto:xerte-</span></a><span
style='font-family:"Courier New"'><br>
&gt; bounces@lists.nottingham.ac.uk] On Behalf Of Peter Huppertz<br>
&gt; Sent: 15 April 2009 08:35<br>
&gt; To: xerte@lists.nottingham.ac.uk<br>
&gt; Subject: [Xerte] How to handle wrong text entries</span> <span
style='font-family:"Courier New"'><br>
&gt; &nbsp;</span> <span style='font-family:"Courier New"'><br>
&gt; Dear List, <br>
&gt; <br>
&gt; I use the Nottingham template as a base for my modifications. The <br>
&gt; template includes a gap fill exercise which uses the textEntry icon.<br>
&gt; I want to expand the template to include scoring for right and wrong<br>
&gt; fills. Also I want to disable the feedback, because the exercise is <br>
&gt; used for a placement test. The only feedback is shown at the end of <br>
&gt; the test like &quot;You answered xx of yy questions correct&quot;. <br>
&gt; This is what I did: <br>
&gt; - changed the .xwd to contain a checkbox for &quot;Disable Feedback&quot; <br>
&gt; - modified the gapfill.rml not to change the type of the textfield <br>
&gt; (from input to dynamic) if the above option is enabled (I don't want<br>
&gt; to have the feedback) and disabled the feedback message <br>
&gt; - added a score variable to the script which is played when the <br>
&gt; entered text of the textEntry matches the phrase <br>
&gt; This works all fine but I still have a problem: <br>
&gt; - If the user fills in the correct phrase and than changes the entry<br>
&gt; again it is still considered as correct. Even worse: if the user <br>
&gt; changes the entry again to the correct value the answer is counted again. <br>
&gt; So my question is: How can I detect if the user changes the text <br>
&gt; entry to a wrong value? Or perhaps there is another solution for my <br>
&gt; problem I haven't thought of? <br>
&gt; <br>
&gt; Peter_______________________________________________<br>
&gt; Xerte mailing list<br>
&gt; Xerte@lists.nottingham.ac.uk<br>
&gt; </span><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte"><span
style='font-family:"Courier New"'>http://lists.nottingham.ac.uk/mailman/listinfo/xerte</span></a><span
style='font-family:"Courier New"'>_______________________________________________<br>
Xerte mailing list<br>
Xerte@lists.nottingham.ac.uk</span><u><span style='color:blue'><br>
</span></u><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte"><span
style='font-family:"Courier New"'>http://lists.nottingham.ac.uk/mailman/listinfo/xerte</span></a><span
style='font-family:"Courier New"'><br>
</span><tt><span style='font-size:10.0pt'>_______________________________________________</span></tt><span
style='font-size:10.0pt;font-family:"Courier New"'><br>
<tt>Xerte mailing list</tt><br>
<tt>Xerte@lists.nottingham.ac.uk</tt><br>
</span><a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte"><tt><span
style='font-size:10.0pt'>http://lists.nottingham.ac.uk/mailman/listinfo/xerte</span></tt></a><span
style='font-size:10.0pt;font-family:"Courier New"'><br>
<br>
</span><o:p></o:p></p>

</div>

</body>

</html>