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.

    RodWard
    Community Expert
    October 16, 2018

    I republished (HTML5) the sub-modules after changing the actions...on success, as shown in the below graphic, as I wish to go to slide 2 of module_00.

    Is the query string of ?slide=2 acceptable, or should it be, as mentioned in earlier post, ?startSlide=2?

    After the sub-modules were published, I copied the published subdirectories to module_00 'callees' folder.

    When I use my browser and select module_00 index.html, and navigate through this module to the Course Map, I click on the sub_module's map item and am brought to the sub_module.  This part works fine.

    When I click on the Return to Course Map button, using the above graphic's On Success, I receive "This page can't be displayed" in my browser.

    There is JavaScript for slide 1 of module_00, on Enter: Execute JavaScript.  I am using the JavaScript originally provided by Mr. Jim Leichliter in the forums.

    All modules were published as HTML5.  Working with one publishing format at a time, HTML5 being foremost; and yes, with SWF end of life at the end of 2020, I have opted to concentrate on HTML5.

    Thoughts/Comments/Suggestions?

    In advance, thank you.


    You might need to post the actual code you are currently using before the JS experts on this forum would be able to see what might be the issue.