HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... Navigation/Scripting
Navigation/Scripting
  View type:
I'm hoping someone can help me. I have just come back to CourseLab after some time away and I have never really got involved much with scripting (so please be patient with me!).

I have a slide with 5 buttons down the side and a main picture. As the user clicks each button, a relevant caption displays on the slide along with a narration.

The buttons can be clicked in any order. Also, if a previously clicked button is clicked again, I want it to play again (so that the user can view each item as many times as they need).

The bit I am struggling with is that I need to disable the next navigation until each button has been clicked at least once (i.e. until all captions have been viewed by the user).

How would I go about this?
 
On Nick's site there is an example you might find useful.

http://www.friendsofcourselab.info/
look in 'advanced'

[:cool:]
 
 
Hi Barend,
I have downloaded the file to force navigation actions based on wether a question has been answered or not (posted at http://www.friendsofcourselab.info/adv/adv_base.html). However, the pesky pop ups continue to appear. Also, when I open the downloade runtime.xml file I don't see the changes suggested in the instructions (text) to remove popups. Were these changes made to the runtime.xml file?

Any help on this would be appreciated,
Maris
 
 
 
Hi Maris,

It really is in runtime.xml, but the version which is made during publishing, i.e. & f.i. the version in map '1'.

In the example 'module in native format' it is a.o. line 632 & 633.

[:)]
 
 
 
 
Hi and thank you for the reply.
Do you know what changes would need to apply to the navigation actions code discussed above (force navigation actions based on wether a question has been answered or not) to make it so that in every odd number question (3,5,7,9,11, etc.)the user can not go go back to the previous answer (even if he answered it correctly). So in short: the user can move from question 1 to question 2 provided that he has answer question 1 correctly, once on question 2 he can go back to question 1 (all of this is possible with Nick's mod) but after moving on to question 3 the user can not go back to question 2.
Any help would be appreciated.
Maris
 
 
 
 
 
I think I would not use javascript but the navigation as in Nick's site, advanced example.
It should be easy to extend the actions to perform as you want, depending on page number or depending on a global variable you change per page.
 
 
 
 
 
 
What you really need to use for this is included as the 'TASK CONTROLLER' object. This enables the use of conditional navigation using SCORM 2004 Sequencing and Navigation, this is based on the IMS simple sequencing specifications. This allow branchjing based on rules.. so answer Qn wrong you get dumped back in the text primer for Qn OR answer a few questions to assess knowledge and push the user off to some primers in the module if they show no knowledge or onto advanced knowledge areas if the do.
The problem is that it is based around nodes and is a nightmare to use, it might be called simple and in concept it is, the realisation is something else!! The dev team say it works but is difficult to use.
If you try and make it work olease let us know and write up a tutorial!!
 
 
 
 
 
 
 
Thank you both Barend and Nick for your reply.

The task controler is uber tricky! I am not going there.

 
 
 
 
Hi and thank you for the reply.
Do you know what changes would need to apply to the navigation actions code discussed above (force navigation actions based on wether a question has been answered or not) to make it so that in every odd number question (3,5,7,9,11, etc.)the user can not go go back to the previous answer (even if he answered it correctly). So in short: the user can move from question 1 to question 2 provided that he has answer question 1 correctly, once on question 2 he can go back to question 1 (all of this is possible with Nick's mod) but after moving on to question 3 the user can not go back to question 2.
Any help would be appreciated.
Maris
Subject:
Message options
No additional options