JScript Code not working

More
4 years 4 weeks ago #95459 by fenden
fenden created the topic: JScript Code not working
Hi there,

I don't know why, but my JScript Code is not working anymore. Neither in the template.js nor in the question settings.
Is there maybe a problem with Apache or could it be something else? I didn't update my LimeSurvey version (still got Version 2.00+ Build 130406). I am using the default template.

Thank you,
Fenden

Please Log in to join the conversation.

More
4 years 4 weeks ago - 4 years 4 weeks ago #95463 by Ben_V
Ben_V replied the topic: JScript Code not working
1) is 'XSS-Filter' setting turned to 'off' ?
(general settings of the install > Security options)

2) If you are using curly braces remember to let a white-space because LS will parse everything inside

Wrong: $('body').css({'display':'none'})
Good: $('body').css({ 'display':'none' })

Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)
Last Edit: 4 years 4 weeks ago by Ben_V.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now