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

#365549 Score: 0
Profile photo of Andrew Lian
Andrew Lian
friend finder
wise owl
curious george
12 pts

Hi Tim,


no reason – just mindset to keep each step separate I guess – but will try as you suggest – but see below

I am trying to save a bit of loading time on page 2, hence the conversion of the Lectora variable on page 1. The Lectora variable itself is actually imported from a MySQL database. It takes 2-3 seconds to transform the Lectora variable and then display it in JS. I cannot display the variable directly in the text box as the variable has HTML – so have to go through JS. 2-3 seconds is not a long time – but it is disruptive – strangely, on page 2, which is very simple – basically just a textbox, it takes longer to display than on other pages which have more stuff on them. Wonder why…