[Xerte] Re: Adding Feedback on Completion of Drag and Drop Labelling (Wizards)

Dave Burnett d_b_burnett at hotmail.com
Wed May 4 01:20:20 BST 2011



Like a javascript alert box?
You have access to your server?

In categories.rlm find the <SCR name="check"> code block and replace it with this:

<SCR name="check"><![CDATA[n = 0;
tot = 0;
for (i = 0; i < tracking.length; i++){
  for (j = 0; j < tracking[i].length; j++){
    tot++;
    if (tracking[i][j].cat == i){
      n++;
      fb.attachMovie('tick', 'tick' + n, n);
      fb['tick' + n]._x = tracking[i][j]._x + tracking[i][j]._width;
      fb['tick' + n]._y = tracking[i][j]._y;
    }
  }
}

if (tot == n) {
  getURL('javascript:congrats("You da man!");', '');
}
]]></SCR>



In preview_xerte_top (found in modules/xerte) 

Add this below the function enableTTS(){ function block:

function congrats(param) {
  alert(param);
} 



When all the objects are in the correct bins, the box will pop up.




Date: Tue, 3 May 2011 21:50:31 +0300
From: admin at strivney.com
To: xerte at lists.nottingham.ac.uk
Subject: [Xerte] Re: Adding Feedback on Completion of Drag and Drop	Labelling (Wizards)

I'm not sure I am understanding what you mean Dave.  I would just like to be able to have a "Well Done"  pop up when they have placed all the labels in the right places on the image.  Would that take up a lot of real estate?






This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, 
copy or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.


This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110503/fca0884a/attachment.html>


More information about the Xerte mailing list