Captivate doesn’t have a slider object built in. See how to insert a web slider and access the values of the slider using some simple JavaScript.
If you have been using Captivate for a while, you’ll know that there is no slider object. There isn’t a way that one can easily be built within Captivate. So, if your project would benefit from having a slider, you have to build it using another tool.
In this video, I’ll show the basics of a web page that has two sliders. These sliders display values by using some JavaScript. Also in this video you will be shown how to insert the HTML5 sliders into Captivate. In order to get the slider values into Captivate, a bit more JavaScript is added within Captivate.
Don’t let code worry you. This video will step through the code in small steps.
The project files can be downloaded here: http://www.pjrules.com/adobe/slider-in_captivate_project.zip
I hope you enjoy learning about sliders.
Cheers
Hi Phil,
I used your example to make Volume slider. It was quiet esay. But I found some problem.
From slider is used value to set variable cpCmndVolume. But it doesnt work.
I set it like this: window.cpAPIInterface.setVariableValue(“cpCmndVolume”, iFrameSlider.volume);
or I set: window.cpAPIInterface.setVolume(iFrameSlider.volume). It doesnt work too.
If I set it using value, for example 50 it works: window.cpAPIInterface.setVariableValue(“cpCmndVolume”, 50); but it keeps volume on 50% level.
Could you help me? Sholud I change iFrame.value to integer?
The file cannot be used i I get all sorts of warnings like it might be in use or damaged or I don’t have enough space – all of which is not the case. please help – I really need a slider marked with liters to help my young learners calculate how many 500ml cups are in a certain amount of liters.
There is an additional function addAll() in the actual zip file used in captivate, this is different from the one in the example. Correct zip with file attached.
This function updates the values when they change.
Love this Craptivate thing. If possible I wouldn’t use it even if it’s free.
I hear what you’re saying David. It would be nice to have it built in. The advantage of this is you can customise the sliders almost endlessly. You can also add as many as you need. So it’s more work but at least it works well when it’s imported.
Cheers
…
Simply amazing !… Thanks a lot for sharing and explaining in depth this project !… (There is no cure for the virus but you could have saved the world with this !…)
More seriously, I have no idea so far how to put html coding in Captivate before, even though I knew it was an option !… I may be wrong, but it’s the first time I see such an example !…
PS : And I also didn’t know the Canadians have such a funny spirit !… I’m still laughing !!!…
Stay safe and happy Captivating !…
…
You must be logged in to post a comment.