Explore the community Forums Lectora Lectora Questions & Answers Trigger Lectora event from JavaScript Reply To: Trigger Lectora event from JavaScript

#398485 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
354 pts
@timk

Doesn’t this error just mean that the path to the function is incorrect? If you call the function from within the iframe with the survey, and if you publish with Seamless Play, which brings in another iframe, the function should be one level further up, i.e. parent.parent.surveySubmitted()

I usually prefer running action groups because it returns the external script back into the Lectora context, but you can use any of Lectoras actions in Javascript directly.