<button type="button" onclick="parent.cp.goToNextSlide()">Continue</button>
So the html file looks like this:
<link rel="stylesheet" type="text/css" href="style.css">
<button class="volgende" type="button" onclick="parent.cp.goToNextSlide()">Go to next slide</button>
I published the file on my webserver and added the link in a web object in Captivate.
Unfortunately the button doesn't work.
Does anyone knows what i'm doing wrong here?
Where is the Web Object, that page you are linking to in relation to your Captivate published file?
Open the console and see what errors are being generated, if any. Press F12 in the browser.
The web object is in a folder on my webserver where my website is running aswell.
The following warnings and errors showing up in the console:
I don't think the code you are using is not going to work since the webpage is not actually a child of the Captivate file. It's just a link.
Don't have access to my server at the moment to test, but you could try this JS:
Thanks for the reply,
Unfortunately window.opener.cp.GoToNextSlide() doesn't work.
Couple of things:
You say that you are putting these buttons in a separate web page because they are retina ready, what about the rest of the project that these button at in?
Thanks TLCMediaDesign for the reply and sorry for the late response. I'm gonna try this code and i will let you know if it works or not.