Welcome, Guest
Username: Password:

TOPIC: JScript Code not working

JScript Code not working 3 years 3 weeks ago #95459

  • fenden
  • fenden's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
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
The administrator has disabled public write access.

JScript Code not working 3 years 3 weeks ago #95463

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1710
  • Thank you received: 424
  • Karma: 106
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
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
Last Edit: 3 years 3 weeks ago by Ben_V.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.177 seconds