February 7, 2018 at 5:05 pm #385808
Some functionality has broken with versioning. If I publish it from V17.0, the closed captions don’t display at all. If I publish from V16, the closed caption box displays but contains no text, just “Undefined”. Was there a change in JS handling between those versions?
Audio is also played by the JS. Well, in Internet Explorer it is. In Chrome the audio never plays.
Thanks.February 7, 2018 at 6:11 pm #385825
Cam PhillipsMember19 pts@_
CamFebruary 7, 2018 at 8:12 pm #385837
Cam, I tried it both with and without Seamless Play, and as I said I also tried V16, which doesn’t even have SP.February 7, 2018 at 10:04 pm #385842
MathFebruary 8, 2018 at 6:03 am #385847
Math, I got involved in other projects and just got back to this, so let me tardily say: thank you very much.February 15, 2018 at 2:58 pm #386850
I don’t suppose anyone has an example using getCurrentPageDiv()? When I publish the course and watch JS execution in the browser console, the interpreter complains that
cc_text_code.js:125 Uncaught ReferenceError: getCurrentPageDiv is not defined
The relevant code is:
getCurrentPageDiv().innerHTML += html ;
Where “html” is a variable containing the HTML required to draw a Div containing the closed caption for the current page.
All help appreciated.February 16, 2018 at 3:04 pm #386981
Joe WielochModerator53 pts@wheels
If you are working in Lectora Desktop and are not on the latest version, they use C++ format rules for the functions (which means an uppercase first letter).
Try GetCurrentPageDiv() instead, and this will be true for the other API calls as well.February 16, 2018 at 3:14 pm #386983
Capitalization is the issue? Because Lectora Desktop doesn’t match the only (very sketchy) documentation?February 17, 2018 at 2:59 am #387028
You must be logged in to reply to this topic.