Skip to main content
cgi rand
Inspiring
October 12, 2018
Question

Jump to specific slide in separate course (project)

  • October 12, 2018
  • 1 reply
  • 1561 views

Still new to Captivate 2019 and have a project's table of contents open another project (named module_01).  When the learner is finished with module_01, I would like them to be able to return to the table of contents in module_00, which is slide 2.  The projects are not being run on an LMS.  The projects will be published as both swf and HTML5.

Previous posts in the forum are a few years old and many refer to a link to "captivatedev.com".  Unfortunately, this domain is no longer active.  There was, according to forum messages, a link in 2011 on "how to jump to a specific slide in a separate course".

That is what I wish Captivate 2019 to do ... go from module_00, slide 2 to module_01, and have a button/action to return to module_00, slide 2.

Advice/comments?

Thank you.

    This topic has been closed for replies.

    1 reply

    chrismay_at_delta6226261
    Inspiring
    October 12, 2018

    If you were only exporting to HTML5, you could add a query string to the URL.  An example:

    www.google.com?startSlide=88

    The ?startSlide=88 is the query string.

    You could have some Javascript on the first slide to check to see if there is a query string and then jump to whatever number is sent in query string.

    Here is a tutorial on how to read the query string:

    https://html-online.com/articles/get-url-parameters-javascript/

    I do not know if it is possible with .swf output. I don't see any actions for reading the query string and I dont know if Javascript will work in the .sfw output, I kind of doubt it.

    cgi rand
    cgi randAuthor
    Inspiring
    October 15, 2018

    Thank you for the feedback.

    I have a first module (module00.cptx) which contains the Objectives on Slide 2.  I have a second module (module 01) which has a "Return to Objectives" button with the following settings:

    On Success:  Open URL or File

    URL:  module_00.cptx?slide=2

    in the current window (I prefer not to have accumulating windows being opened).

    Do I put the JavaScript in the first module, on the first slide?

    On Enter: Execute JavaScript

    in the current window

    I am not sure if posting of JavaScript is allowed in the forums.  I did find Jim Leichliter's JavaScript (from 2011).

    Also, do I have to put the module(s) in the 'callees' subdirectory of module_00?

    Thank you once again.

    cgi rand
    cgi randAuthor
    Inspiring
    October 18, 2018

    That's where you put this JavaScript instead. You said it wasn't opening the file correct? I don't think it will let you build relative links:

    window.open("../../index.html?slide=2","","","_self");


    I have put the one-line JS in the "Return" button's actions in module_01.

    On Success:

    Execute JavaScript

    Current Window

    It does now return to module_00, however it is opening in a new window/browser tab, and it displays the Project Start screen (with the 'play' button, and now a 'gestures' button.)

    Major objective to return to module_00 is successful.

    Two other issues: it did not return to the particular slide (slide 2) and now the Project Start screen has a 'gestures' button showing.

    Thank you.