[Xerte] Go Back Function
E.A. Draffan
ea at emptech.info
Tue May 13 10:58:19 BST 2008
Thank you so much - I am working with learning disabled adults which is why
we need to make it very clear how to get back.
Best wishes E.A.
-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Tenney Julian
Sent: 13 May 2008 10:42
To: Xerte discussion list
Subject: [Xerte] Go Back Function
I'm a great believer in not recreating things that already exist. Unless
the user cannot see the back button for some reason, I think
usability-wise, it is best to get the user to use the controls they are
already familiar with. The risk you run is that the user doesn't know
what your 'go back' button does. Does it go back to the previous page in
the learning object? Or in the browser? Or to a previous learning
object? Or??
If you need to do it, you need to add an fscommand to the rloObject.js
file:
These are the lines to add:
document.write('if (command == "goBack"){');
document.write(' history.back();');
document.write('}');
And you need to add it to this bit of the file, so it look like this:
~snippet from
rloObject.js~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
document.write('function ' + rloID + '_DoFSCommand(command, args){');
document.write('if (command == "messageBox"){');
document.write('alert(args);');
document.write('return true;');
document.write('}');
document.write('if (command == "resize"){');
document.write(' document.getElementById("rlo'+ rloID +
'").style.width = args.substr(0, args.indexOf(","))+"px"; ');
document.write(' document.getElementById("rlo'+ rloID +
'").style.height = args.substr(args.indexOf(",") + 1, args.length)+"px";
');
document.write('}');
document.write('if (command == "fullscreen"){');
document.write(' document.getElementById("rlo'+ rloID +
'").style.width = "100%"; ');
document.write(' document.getElementById("rlo'+ rloID +
'").style.height = "100%"; ');
document.write('}');
document.write('if (command == "speak"){');
document.write(' VoiceObj.Speak(args, 3);');
document.write('}');
document.write('if (command == "stopTTS"){');
document.write(' VoiceObj.Speak("", 2);');
document.write('}');
document.write('if (command == "goBack"){');
document.write(' history.back();');
document.write('}');
document.write('}');
Then you can go back using the script fscommand('goBack') in Xerte.
-----Original Message-----
From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of E.A. Draffan
Sent: 13 May 2008 09:41
To: 'Xerte discussion list'
Subject: RE: [Xerte] FLV / Movie - Synchronisation
Yet another question - sorry about this and I hope it is a simple one!
What is the script needed that automatically sends the user back to the
web page they were on before they started the learning object. I would
like them to be returned to a page when they have completed the exercise
without having to use a browser back button.
Many thanks.
Best wishes E.A.
Mrs E.A. Draffan
Learning Societies Lab,
ECS, University of Southampton,
Tel +44 (0)23 8059 7246
http://www.lexdis.ecs.soton.ac.uk
http://www.emptech.info
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.23.16/1429 - Release Date:
12/05/2008
18:14
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.23.16/1429 - Release Date: 12/05/2008
18:14
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 269.23.16/1429 - Release Date: 12/05/2008
18:14
More information about the Xerte
mailing list