Highlighted

Navigate to the next slide with a button inside a Web object or HTML5 Animation

Community Beginner ,
Oct 07, 2019

Copy link to clipboard

Copied

UPDATE:

Found the answer here:

https://community.adobe.com/t5/Captivate/Javascript-go-to-next-slide-from-Web-Object/td-p/9515980

 

******

Hi! I need to have a button inside an HTML5 animation (oam) or web object which makes the parent window (Captivate) navigate to the next slide. I've seen this working in Storyline with a button inside an HTML5 object which triggers this javascript function when clicked:

Function next(hypedocument, element, event) {

console.log("go to next");

var player  =  parent.GetPlayer(); /* player */

player.SetVar ("next",Math.floor((Math.random() * 100) + 1));

}

 

The user needs to navigate an interactive HTML5 animation in a slide before proceeding to the next one, so that's why I need the button inside the web object to tell Captivate to go to the next slide.

Many thanks in advance for your help.

 

Views

661

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Navigate to the next slide with a button inside a Web object or HTML5 Animation

Community Beginner ,
Oct 07, 2019

Copy link to clipboard

Copied

UPDATE:

Found the answer here:

https://community.adobe.com/t5/Captivate/Javascript-go-to-next-slide-from-Web-Object/td-p/9515980

 

******

Hi! I need to have a button inside an HTML5 animation (oam) or web object which makes the parent window (Captivate) navigate to the next slide. I've seen this working in Storyline with a button inside an HTML5 object which triggers this javascript function when clicked:

Function next(hypedocument, element, event) {

console.log("go to next");

var player  =  parent.GetPlayer(); /* player */

player.SetVar ("next",Math.floor((Math.random() * 100) + 1));

}

 

The user needs to navigate an interactive HTML5 animation in a slide before proceeding to the next one, so that's why I need the button inside the web object to tell Captivate to go to the next slide.

Many thanks in advance for your help.

 

Views

662

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Have something to add?

Join the conversation