Skip to main content
Participant
March 12, 2018
Question

JAWS not reading the output of a captivate variable?

  • March 12, 2018
  • 2 replies
  • 465 views

I have been tasked with testing our Captivate eLearning courses for accessibility using JAWS 2018. In the process of learning JAWS, I noticed that any variable output to the screen is read exactly as it is on the slide, i.e. Slide $$cpInfoCurrentSlide$$ of $$cpInfoSlideCount$$ is read as "page dollar sign dollar sign, cpinfoslidecount dollar sign dollar sign of dollar sign dollar sign cpinfoslidecount dollar sign dollar sign" instead of reading "page 4 of 21"

If anybody has encountered this issue and found a solution, your help will be greatly appreciated.

This topic has been closed for replies.

2 replies

TLCMediaDesign
Inspiring
December 9, 2019

Use this script:

 

setTimeout(function(){
document.getElementById( 'slideNumaccStr' ).childNodes[ 0 ].innerHTML = "Page " + window.cpInfoCurrentSlide + " of " + window.cpInfoSlideCount;},1000)

 

The part in bold "slideNum" is the name of the text caption your variables is in. Put it on the first slide and display for the rest of project, it won't work id you put it on a master slide.

Participant
October 30, 2022

Can you show screen shots on how you carried this out? This does not work for me and it still reads the variable. Thanks!

TLCMediaDesign
Inspiring
March 12, 2018

You would need to execute this JavaScript on slideEnter of every slide:

document.getElementById( 'current_slideaccStr' ).childNodes[ 0 ].innerHTML = "Page " + window.cpInfoCurrentSlide + " of " + window.cpInfoSlideCount;

The part in bold is the name of the text caption that holds the variable.