Implement "AJAX"-call

4 years 9 months ago #95321 by king_and1
king_and1 created the topic: Implement "AJAX"-call

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:

Please Log in to join the conversation.

4 years 9 months ago #95333 by king_and1
king_and1 replied the topic: Implement "AJAX"-call
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...

Please Log in to join the conversation.

4 years 9 months ago #95357 by DenisChenu
DenisChenu replied the topic: Implement "AJAX"-call
You have an expample of an ajax call here:

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


Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).
An error happen ? Before make a new topic : remind the Debug mode .

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!