<HTML dir=ltr><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.16809" name=GENERATOR></HEAD>
<BODY>
<DIV id=idOWAReplyText72226 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>I wouldn't use onPageClose. Set the match to * (I think) and then the response will fire every time new characters are typed into it - catch the text and judge it at that point, perhaps against an array of the right answers. </FONT><FONT face=Arial size=2></FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on behalf of Peter Huppertz<BR><B>Sent:</B> Wed 15/04/2009 11:16<BR><B>To:</B> Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] How to handle wrong text entries<BR></FONT><BR></DIV>
<DIV><FONT face=sans-serif size=2>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).</FONT> <BR><BR><FONT face=sans-serif size=2>Peter</FONT> <BR><BR><BR>
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD><FONT face=sans-serif color=#5f5f5f size=1>From:</FONT>
<TD><FONT face=sans-serif size=1>Patrick Lockley <Patrick.Lockley@nottingham.ac.uk></FONT>
<TR vAlign=top>
<TD><FONT face=sans-serif color=#5f5f5f size=1>To:</FONT>
<TD><FONT face=sans-serif size=1>"Xerte discussion list" <xerte@lists.nottingham.ac.uk></FONT>
<TR vAlign=top>
<TD><FONT face=sans-serif color=#5f5f5f size=1>Date:</FONT>
<TD><FONT face=sans-serif size=1>15.04.2009 11:51</FONT>
<TR vAlign=top>
<TD><FONT face=sans-serif color=#5f5f5f size=1>Subject:</FONT>
<TD><FONT face=sans-serif size=1>RE: [Xerte] How to handle wrong text entries</FONT>
<TR vAlign=top>
<TD><FONT face=sans-serif color=#5f5f5f size=1>Sent by:</FONT>
<TD><FONT face=sans-serif size=1>xerte-bounces@lists.nottingham.ac.uk</FONT></TD></TR></TBODY></TABLE><BR>
<HR noShade>
<BR><BR><BR><FONT face=Verdana color=blue size=3>Maybe change how it works – don’t evaluate the answers until you have to, then check the answers?</FONT> <BR><FONT face=Verdana color=blue size=3> </FONT> <BR><FONT face=Tahoma size=3><B>From:</B> xerte-bounces@lists.nottingham.ac.uk [</FONT><A href="mailto:xerte-bounces@lists.nottingham.ac.uk"><FONT face=Tahoma size=3>mailto:xerte-bounces@lists.nottingham.ac.uk</FONT></A><FONT face=Tahoma size=3>] <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</FONT> <BR><FONT face="Times New Roman" size=3> </FONT> <BR><FONT face=Arial size=3>Hi Patrick, </FONT><FONT face="Times New Roman" size=3><BR></FONT><FONT face=Arial size=3><BR>see my remarks below:</FONT><FONT face="Times New Roman" size=3> <BR></FONT><FONT face="Courier New" size=3><BR>xerte-bounces@lists.nottingham.ac.uk wrote on 15.04.2009 11:15:03:<BR><BR>> From:</FONT><FONT face="Times New Roman" size=3> </FONT><FONT face="Courier New" size=3><BR>> <BR>> Patrick Lockley <Patrick.Lockley@nottingham.ac.uk></FONT><FONT face="Times New Roman" size=3> </FONT><FONT face="Courier New" size=3><BR>> <BR>> To:</FONT><FONT face="Times New Roman" size=3> </FONT><FONT face="Courier New" size=3><BR>> <BR>> "Xerte discussion list" <xerte@lists.nottingham.ac.uk></FONT><FONT face="Times New Roman" size=3> </FONT><FONT face="Courier New" size=3><BR>> <BR>> Date:</FONT><FONT face="Times New Roman" size=3> </FONT><FONT face="Courier New" size=3><BR>> <BR>> 15.04.2009 11:20</FONT><FONT face="Times New Roman" size=3> </FONT><FONT face="Courier New" size=3><BR>> <BR>> Subject:</FONT><FONT face="Times New Roman" size=3> </FONT><FONT face="Courier New" size=3><BR>> <BR>> RE: [Xerte] How to handle wrong text entries</FONT><FONT face="Times New Roman" size=3> </FONT><FONT face="Courier New" size=3><BR>> <BR>> Sent by:</FONT><FONT face="Times New Roman" size=3> </FONT><FONT face="Courier New" size=3><BR>> <BR>> xerte-bounces@lists.nottingham.ac.uk</FONT><FONT face="Times New Roman" size=3> </FONT><FONT face="Courier New" size=3><BR>> <BR>> Why not static the text field once the answer is correct?</FONT><FONT face="Times New Roman" size=3> <BR></FONT><FONT face="Courier New" size=3><BR>I can do that, if there is no other solution. But making the TextField static would already be an (unwanted) feedback.</FONT><FONT face="Times New Roman" size=3> <BR></FONT><FONT face="Courier New" size=3><BR>> Or give it a property called correct and once that is true don’t add<BR>> any more scores?</FONT><FONT face="Times New Roman" size=3> <BR></FONT><FONT face="Courier New" size=3><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?</FONT><FONT face="Times New Roman" size=3> <BR></FONT><FONT face="Courier New" size=3><BR>> </FONT><FONT face="Times New Roman" size=3> </FONT><FONT face="Courier New" size=3><BR>> I’m not that good at xwd stuff so I am not sure how easy that is.</FONT><FONT face="Times New Roman" size=3> <BR></FONT><FONT face="Courier New" size=3><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).</FONT><FONT face="Times New Roman" size=3> <BR></FONT><FONT face="Courier New" size=3><BR>Peter</FONT><FONT face="Times New Roman" size=3> <BR></FONT><FONT face="Courier New" size=3><BR>> </FONT><FONT face="Times New Roman" size=3> </FONT><FONT face="Courier New" size=3><BR>> From: xerte-bounces@lists.nottingham.ac.uk [</FONT><A href="mailto:xerte-"><FONT face="Courier New" color=blue size=3><U>mailto:xerte-</U></FONT></A><FONT face="Courier New" size=3><BR>> bounces@lists.nottingham.ac.uk] On Behalf Of Peter Huppertz<BR>> Sent: 15 April 2009 08:35<BR>> To: xerte@lists.nottingham.ac.uk<BR>> Subject: [Xerte] How to handle wrong text entries</FONT><FONT face="Times New Roman" size=3> </FONT><FONT face="Courier New" size=3><BR>> </FONT><FONT face="Times New Roman" size=3> </FONT><FONT face="Courier New" size=3><BR>> Dear List, <BR>> <BR>> I use the Nottingham template as a base for my modifications. The <BR>> template includes a gap fill exercise which uses the textEntry icon.<BR>> I want to expand the template to include scoring for right and wrong<BR>> fills. Also I want to disable the feedback, because the exercise is <BR>> used for a placement test. The only feedback is shown at the end of <BR>> the test like "You answered xx of yy questions correct". <BR>> This is what I did: <BR>> - changed the .xwd to contain a checkbox for "Disable Feedback" <BR>> - modified the gapfill.rml not to change the type of the textfield <BR>> (from input to dynamic) if the above option is enabled (I don't want<BR>> to have the feedback) and disabled the feedback message <BR>> - added a score variable to the script which is played when the <BR>> entered text of the textEntry matches the phrase <BR>> This works all fine but I still have a problem: <BR>> - If the user fills in the correct phrase and than changes the entry<BR>> again it is still considered as correct. Even worse: if the user <BR>> changes the entry again to the correct value the answer is counted again. <BR>> So my question is: How can I detect if the user changes the text <BR>> entry to a wrong value? Or perhaps there is another solution for my <BR>> problem I haven't thought of? <BR>> <BR>> Peter_______________________________________________<BR>> Xerte mailing list<BR>> Xerte@lists.nottingham.ac.uk<BR>> </FONT><A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte"><FONT face="Courier New" color=blue size=3><U>http://lists.nottingham.ac.uk/mailman/listinfo/xerte</U></FONT></A><TT><FONT size=2>_______________________________________________<BR>Xerte mailing list<BR>Xerte@lists.nottingham.ac.uk<BR></FONT></TT><A href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte"><TT><FONT size=2>http://lists.nottingham.ac.uk/mailman/listinfo/xerte</FONT></TT></A><TT><FONT size=2><BR></FONT></TT><BR><BR></DIV></BODY></HTML>