Welcome, Guest
Username: Password: Remember me

TOPIC: Implement "AJAX"-call

Implement "AJAX"-call 11 months 4 weeks ago #95321

  • king_and1
  • king_and1's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Karma: 0
Hello,

I need some advice on how to implement an AJAX-call in LimeSurvey....

I just want it to target one special question. Let´s just say only the first one .
How and where do i have to insert the Code ?
Since I´m relatively new to this kind of programming I´m really confused about the implementation.

Hopefully someone can help me with this project .... :silly:
The administrator has disabled public write access.

Implement "AJAX"-call 11 months 4 weeks ago #95333

  • king_and1
  • king_and1's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Karma: 0
Well , so i got the Blue and Gray template where i changed some colors and so on....

The structure still the same.

The first question in my Survey is like : "please type in your serial number"

Well, and thats exactly where i want an Ajax call. After the user finished the input, it should start checking the serial number on a external server and provide an answer if this serial is correct or not .
I´ve searched the question.pstpl(dunno how its correct..) and i´ve found the div_class="answers" and the table´s in it. But i dont know how to specifically target this first question. So i hope this is enough information so we can go on working out this problem , if not please tell me what´s missing and i´m gonna try editing it as good as possible...
The administrator has disabled public write access.

Implement "AJAX"-call 11 months 4 weeks ago #95357

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 5875
  • Thank you received: 722
  • Karma: 223
You have an expample of an ajax call here:
manual.limesurvey.org/Workarounds:_Manip...wers_for_text_inputs

Ajax call is not a LS problem, please view jquery documentation .

Denis
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.121 seconds
Donation Image