Welcome, Guest
Username: Password: Remember me

TOPIC: JScript Code not working

JScript Code not working 2 years 9 months 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 2 years 9 months ago #95463

  • Ben_V
  • Ben_V's Avatar
  • Online
  • Platinum Lime
  • Posts: 1594
  • Thank you received: 391
  • Karma: 103
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
Last Edit: 2 years 9 months ago by Ben_V.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.154 seconds