[Xerte] Re: Adding Feedback on Completion of Drag and Drop Labelling (Wizards)
Kemp Johnathan
johnathan.kemp at ntlworld.com
Wed May 4 22:14:48 BST 2011
Hello Julian,
When you say " It goes in [xerte]/tools "
Are you referring to Dave's bit of magic
In preview_xerte_top (found in modules/xerte)
Add this below the function enableTTS(){ function block:
function congrats(param) {
alert(param);
}
This is all new to me (not javascript, but the arcane arts of adding bits to
the back-end of Xerte)
I took a look in the tools folder of desktop Xerte and then opened every
folder in the desktop Xerte installation, but I can't find the location that
Dave is referring to.
Kind regards
Johnathan
On 4 May 2011 14:53, Julian Tenney <Julian.Tenney at nottingham.ac.uk> wrote:
> It goes in [xerte]/tools
>
>
>
> *From:* xerte-bounces at lists.nottingham.ac.uk [mailto:
> xerte-bounces at lists.nottingham.ac.uk] *On Behalf Of *Kemp Johnathan
> *Sent:* 04 May 2011 12:09
> *To:* Xerte discussion list
>
> *Subject:* [Xerte] Re: Adding Feedback on Completion of Drag and Drop
> Labelling (Wizards)
>
>
>
> "Do you have access to your server?"
>
>
>
> Are we by any chance talking Xerte On-line Toolkits here?
>
>
>
> I can't find a modules\xerte folder in my desktop Xerte installation or in
> the project created by Xerte, or have I missed something? Deborah is using
> the Page Wizards.
>
>
>
> Kind regards
>
>
>
> Johnathan
>
>
>
>
>
> On 4 May 2011 01:20, Dave Burnett <d_b_burnett at hotmail.com> wrote:
>
>
> 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.
>
>
> _______________________________________________
> 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.
>
>
>
> _______________________________________________
> 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/20110504/89921bd4/attachment-0001.html>
More information about the Xerte
mailing list