Explore the community Forums Lectora Lectora Questions & Answers Another JS scoping problem Reply To: Another JS scoping problem

#365731 Score: 0
Profile photo of Math Notermans
Math Notermans
friend finder
junior moderator
LUC16 Attendee
wise owl
curious george
131 pts

Yes, using an external Javascript file and declaring variables in the title level should ( at least in version 17 with seamless play enabled ) make the variables accessible on all pages. With version 16 and before each page is a separate html, and allthough using a script on title level would give you access to the same functions on each page… the variables will be reset each page. Setting them as Lectora variables might solve that in Lectora 16 and earlier. I will see if i can mockup both a 16 and 17 sample tonight…