<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=idOWAReplyText86435 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>store the scores in an array:</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>arr = [0,0,0,0,0,0]</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>if answer 1 is correct arr[0] = 1 if arr[0] == 0</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>score = arr.sum()</FONT><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 08:35<BR><B>To:</B> xerte@lists.nottingham.ac.uk<BR><B>Subject:</B> [Xerte] How to handle wrong text entries<BR></FONT><BR></DIV></DIV>
<DIV><FONT face=sans-serif size=2>Dear List,</FONT> <BR><BR><FONT face=sans-serif size=2>I use the Nottingham template as a base for my modifications. The template includes a gap fill exercise which uses the textEntry icon. I want to expand the template to include scoring for right and wrong fills. Also I want to disable the feedback, because the exercise is used for a placement test. The only feedback is shown at the end of the test like "You answered xx of yy questions correct".</FONT> <BR><FONT face=sans-serif size=2>This is what I did:</FONT> <BR><FONT face=sans-serif size=2>- changed the .xwd to contain a checkbox for "Disable Feedback"</FONT> <BR><FONT face=sans-serif size=2>- modified the gapfill.rml not to change the type of the textfield (from input to dynamic) if the above option is enabled (I don't want to have the feedback) and disabled the feedback message</FONT> <BR><FONT face=sans-serif size=2>- added a score variable to the script which is played when the entered text of the textEntry matches the phrase</FONT> <BR><FONT face=sans-serif size=2>This works all fine but I still have a problem:</FONT> <BR><FONT face=sans-serif size=2>- If the user fills in the correct phrase and than changes the entry again it is still considered as correct. Even worse: if the user changes the entry again to the correct value the answer is counted again.</FONT> <BR><FONT face=sans-serif size=2>So my question is: How can I detect if the user changes the text entry to a wrong value? Or perhaps there is another solution for my problem I haven't thought of?</FONT> <BR><BR><FONT face=sans-serif size=2>Peter</FONT></DIV></BODY></HTML>