Explore the community Forums Lectora Lectora Questions & Answers V10 course republished in 17: doesn't work. Also JS. Reply To: V10 course republished in 17: doesn't work. Also JS.

#386850 Score: 0
Profile photo of CarlFink
CarlFink
Member
beginner
intermediate
contributor
LUC16 Attendee
wise owl
curious george
advanced
friend finder
41 pts
@CarlFink

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.