Forum Discussion

GarrisonWilliam's avatar
GarrisonWilliam
Community Member
4 months ago

JumpToSlide in JavaScript Not Working

I'm trying to create navigation based on variables. The JumpToSlide function in JavaScript works when a project is exported to Review 360 as expected. It does not work when exported to web.

  • Export to Review 360 WORKS
  • Preview in Storyline 360 - FAILS
  • Export to Web - FAILS
  • Upload to Apache Server - FAILS

Here is the code I'm using.

On Slide 1 Trigger: Set slideID to variable Slide.Id when timeline starts on this slide.

On Slide 3 Button to return to Slide 1 with the following JavaScript:
var slideID = GetPlayer().GetVar("slideID");
GetPlayer().JumpToSlide(slideID);

 

Thank you to Nathan_Hilliard for help debugging this.

  • on Review 360 storyline courses are using a special mode "dark-spider" with more features in GetPlayer()

    publish for Web/LMS -> normal mode

    publish for Review 360 -> "dark-spider" mode

     

    you can activate "dark-spider" with

    window.autoSpider = true;

    in story.html

     

    now you 'only' have to test whether this spider-mode has side effects

  • on Review 360 storyline courses are using a special mode "dark-spider" with more features in GetPlayer()

    publish for Web/LMS -> normal mode

    publish for Review 360 -> "dark-spider" mode

     

    you can activate "dark-spider" with

    window.autoSpider = true;

    in story.html

     

    now you 'only' have to test whether this spider-mode has side effects

    • GarrisonWilliam's avatar
      GarrisonWilliam
      Community Member

      Jürgen, that works perfectly. Thank you for this explanation.

      I'm curious how you think this might cause side effects.

      • Jürgen_Schoene_'s avatar
        Jürgen_Schoene_
        Community Member

        I'm curious how you think this might cause side effects.

        since this mode was completely unknown* until now and I only found it in the JavaScript source code of the web player - I would be careful at least with LMS integration (-> learner tracking)

        * number of Google search results = 0