"Name-generator-question" for network survey with auto-compl and variable length

More
1 week 3 days ago #206424 by Joshi
Hello everyone,

quite some time ago tpartner and Joffm helped me a lot findig a great soution to collect network data (who is connected to whom): forums.limesurvey.org/forum/can-i-do-thi...stion?start=0#160556

Therefor tpartner combined the autocomplete workaround ( manual.limesurvey.org/Workarounds:_Manip...wers_for_text_inputs ) with the workaround for Variable Length Array (Multi Flexible Text) question ( manual.limesurvey.org/Workarounds:_Manip...ble_Text.29_question ) and Joffm brought in the style adding some CSS. Here is an example: userpages.uni-koblenz.de/~organisation/l...x.php/759687?lang=de

As this solution is still very importand for my research, I wonder whether it might be a good idea to update it, so it will also work with the current stable version of LS (3.23.7).

As I´m not always keeping track of all the changes, I would be greathfull if you could give me any hints on how to do so.

Thank you so much guys!
Joshua

Please Log in to join the conversation.

LimeSurvey Partners
More
1 week 3 days ago #206425 by Joffm
Hi, Joshua,
I added the jquery files and the name file to the "files" folder of the survey.

In the "old" script I changed the first lines to

<link href="/limesurvey/upload/surveys/831211/files/jquery-ui.min.css" rel="stylesheet" type="text/css" />
<script src="/limesurvey/upload/surveys/831211/files/jquery-ui.min.js"></script>
<script src="/limesurvey/upload/surveys/831211/files/jquery.csv.min.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).on('ready pjax:complete',function() {
var url = "/limesurvey/upload/surveys/831211/files/kursnamen.csv";
var inputError = 'That is not a valid name';
var duplicateError = 'That is a duplicated name';
...


See the result in Version 3.22.28+200728





Viel Erfolg

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless
Attachments:

Please Log in to join the conversation.

More
1 week 3 days ago #206426 by Joshi
Thank you Joffm!

Sorry if this might be a beginners question.

But where can I find/download the jquery files?

Please Log in to join the conversation.

More
1 week 3 days ago #206428 by jelo

Joshi wrote: But where can I find/download the jquery files?

JQuery is a popular Javascript library. Earlier versions of LimeSurey had JQuery included.

The website is jquery.com/

Two files are from jqueryui.com/
The jquery.csv.min.js looks like a plugin.

Joffm might can directly point to the libraries.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Please Log in to join the conversation.

More
1 week 3 days ago #206429 by tpartner
I would load the jQuery script(s) and CSS in a survey theme or, better, in a custom question theme.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in to join the conversation.

More
1 week 3 days ago #206430 by tpartner

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Official LimeSurvey Partner - partnersurveys.com

Please Log in to join the conversation.

More
1 week 2 days ago #206431 by Joffm
Hi, Joshua,
in this thread you find all files.

There I also mentioned that you can upload to the theme as well.
https://forums.limesurvey.org/forum/german-forum/120374-postleitzahl-eintippen,-name-der-stadt-in-fragen-anzeigen#194744

Joffm


Volunteers are not paid.
Not because they are worthless, but because they are priceless

Please Log in to join the conversation.

More
1 week 16 hours ago - 1 week 16 hours ago #206558 by Joshi
Thank you for your ideas! Especially thanks to Joffm :)

I´m still struggeling to get acces to the uploaded files (jquery-ui.min.css ...) in the scrip. Is there any way I´ve made something wrong with the upload? In FileZilla I put them to 777. But still getting:

<h1>access denied! h1>
<p>

Access to the requested object is not possible. ...
Last edit: 1 week 16 hours ago by Joshi.

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now