- Posts: 12
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
"Name-generator-question" for network survey with auto-compl and variable length
- Joshi
- Topic Author
- Offline
- New Member
Less
More
3 years 6 months ago #206424
by Joshi
"Name-generator-question" for network survey with auto-compl and variable length was created 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
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
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12886
- Thank you received: 3965
3 years 6 months ago #206425
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic "Name-generator-question" for network survey with auto-compl and variable length
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
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
The topic has been locked.
- Joshi
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
3 years 6 months ago #206426
by Joshi
Replied by Joshi on topic "Name-generator-question" for network survey with auto-compl and variable length
Thank you Joffm!
Sorry if this might be a beginners question.
But where can I find/download the jquery files?
Sorry if this might be a beginners question.
But where can I find/download the jquery files?
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
3 years 6 months ago #206428
by jelo
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
Replied by jelo on topic "Name-generator-question" for network survey with auto-compl and variable length
JQuery is a popular Javascript library. Earlier versions of LimeSurey had JQuery included.Joshi wrote: But where can I find/download the jquery files?
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
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
3 years 6 months ago #206429
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic "Name-generator-question" for network survey with auto-compl and variable length
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.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10099
- Thank you received: 3589
3 years 6 months ago #206430
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic "Name-generator-question" for network survey with auto-compl and variable length
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- Joffm
- Away
- LimeSurvey Community Team
Less
More
- Posts: 12886
- Thank you received: 3965
3 years 6 months ago #206431
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic "Name-generator-question" for network survey with auto-compl and variable length
Hi, Joshua,
in this thread you find all files.
There I also mentioned that you can upload to the theme as well.
forums.limesurvey.org/forum/german-forum...agen-anzeigen#194744
Joffm
in this thread you find all files.
There I also mentioned that you can upload to the theme as well.
forums.limesurvey.org/forum/german-forum...agen-anzeigen#194744
Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The topic has been locked.
- Joshi
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
- Thank you received: 0
3 years 6 months ago - 3 years 6 months ago #206558
by Joshi
Replied by Joshi on topic "Name-generator-question" for network survey with auto-compl and variable length
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. ...
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: 3 years 6 months ago by Joshi.
The topic has been locked.