Explore the community Forums Lectora Lectora Questions & Answers TypeError with Closed Captioning & Cornerstone On-Demand Reply To: TypeError with Closed Captioning & Cornerstone On-Demand

#394330 Score: 0
Profile photo of Tim K
Tim K
Member
contributor
beginner
intermediate
advanced
friend finder
junior moderator
advocate
wise owl
curious george
Group Member
355 pts
@timk

Very difficult to troubleshoot if it only happens in the LMS and I don’t know Cornerstone. It seems like the JS can’t find the radio button to click. You could try to use getDisplayDocument() instead of “parent.document”. You could also try to get the butttons directly. As long as you have only one video the ids will always be the same:

getDisplayDocument().getElementById("mep_0_captions_en").click();