Copy link to clipboard
Copied
Is there an exposed or hidden variable that controls the page seen checkmarks in the TOC?
Copy link to clipboard
Copied
Certainly not 'exposed'.
Copy link to clipboard
Copied
Can you explain a little more?
Unchecking "Status flag" in the TOC setting will get rid of the checkmarks.
Copy link to clipboard
Copied
Here is the issue:
A client is delivering courseware without using an LMS. They want the learner to be able to bookmark and exit and then resume from where he left off. The catch is that they want the student to be able to resume an any other machine. In the current TOC settings, the navigation is set to Visited Slides Only to prevent a learner from skipping ahead. There is no problem stashing the slide number of the last slide the learner saw in an external database and returning to that specific slide. BUT, if, for example, the learner bookmarks page 20 and then is returned to that page (again, we can do this), the TOC shows that the previous 19 slides are unchecked and therefore cannot be accessed via the TOC. What is needed is a way to reestablish the completion checks on the previous slides (an array value, we suspect).
Copy link to clipboard
Copied
So do you have the self-paced learning turned on (checked) in the TOC settings?
Copy link to clipboard
Copied
Yes, and the built in Captivate "resume" function works fine on the same machine. But if a learner starts the program on a computer at work and then tries to resume at his home computer, he has to start from scratch.
Copy link to clipboard
Copied
That's because the "cookie" is stored on the computer. You would need something external and common to both machines to share the information, like an LMS or Database or even a Google Sheet.
Copy link to clipboard
Copied
I realize the cookie is being written, I understand that, The issue I am raising it is it possible to grab the variable values that are the cookie data so that I can, in fact, store it in an external database and use that data to configure the set the TOC checkmarks on another machine?
Copy link to clipboard
Copied
I haven't actually messed with the TOC, but I imagine that it's writing localStorage with HTML5 so you should be able to type, localStorage in your console and see what it returns. For swf it's a sol or Flash Cookie.
Copy link to clipboard
Copied
I kinda figured it would be something like that, sorta. I was also hoping that someone would know what variable was tracking what I assume would be an array value and that I could get the array contents via a js routine when the learner click an save place and exit button. And I was also hoping to meet the Easter bunny.
Seriously though, thanks for the input.
Copy link to clipboard
Copied
It's actually writing an array to document.cookie, so not localStorage, just a regular cookie. So since you are running in the same domain you should be able to read the cookie, or possible the internal array.
run this in a js window and you can see the info.
console.log(document.cookie.split("/"))
Copy link to clipboard
Copied
The info is like this:
12125/1/0,1,2,3,/0,1,2,3,//1
12125 is the id of the TOC
/1 never changes, I think it is a flag on whether to bookmark
/0,1,2,3, is visitedArray
the second /0,1,2,3, is bookmarkArray
/1 = last slide visited
Copy link to clipboard
Copied
You have absolutely confirmed my suspicions about the array, and it is, readable via the console. The issue the is to uncover the variable that the TOC creates the cookie from so that it can be set on program entry based on the array data stored in the database.