Skip to main content
DavoJo
Participant
September 27, 2014
Question

How do you create a Browser cookie in Captivate to save and load a set of variables?

  • September 27, 2014
  • 1 reply
  • 463 views

Using the below tutorial I am trying to set a cookie that remembers the menu of sections that have been viewed when the browser reopens. Basically sets and loads 6 variables with a cookie. But it's not working and I can't find the JavaScript to debug in Chrome. Alternately does anyone know of a better tutorial for setting cookies in Captivate then this post?

Eating JavaScript Cookies with Adobe Captivate - CaptivateDev.com

    This topic has been closed for replies.

    1 reply

    TLCMediaDesign
    Inspiring
    September 27, 2014

    By the time you retreive the variable from the cookie it's possible that whatever you wanted to show/hide onthe menu has already been rendered. Can you display the values of the variables in a text caption?

    DavoJo
    DavoJoAuthor
    Participant
    September 27, 2014

    Thanks for replying. The variables define a number of states within the training. Mostly a main menu showing modules completed or not and also defining areas as locked or unlocked. So it's more then a text caption. I'd like a button on the intro/splash screen that when clicked loads about 6 variable as 0 or 1 from the cookie. Then the user would continue to the training with all the variables loaded.