- Posts: 88
- Thank you received: 33
Ask the community, share ideas, and connect with other LimeSurvey users!
$(document).on('click', '.submit', function (e) { e.preventDefault(); var direction = this.value; var data = $('#limesurvey').serialize() + "&move=" + direction; $.ajax("//yoursurveydomain.com/index.php/survey", { cache: false, type: "POST", data: data, success: function (response) { var $data = $(response); var limesurvey = $data.find("#limesurvey").html(); if (typeof limesurvey !== "undefined") { $('#limesurvey').html(limesurvey); loadScripts(); } else { //this will be a quota/term/complete or some other page without questions $('div.outerframe.clearfix').html($data.filter('div.outerframe.clearfix').html()); } }, error: function (response) { } }).done(function () { //trigger any doc ready scripts we may have just loaded jQuery.ready(); }); });
Bigred wrote: you now have the ability to add spinners or page transitions.
var submitDirection = ""; $(document).on('click', '.submit', function (e) { submitDirection = this.value; }); $(document).on('submit',"#limesurvey",function(e) { e.preventDefault(); var data = $('#limesurvey').serialize() + "&move=" + submitDirection; ............
I didn't work on THIS one, but something like that : demonstration.sondages.pro/374469?newtest=Y ?Ben_V wrote:
Bigred wrote: you now have the ability to add spinners or page transitions.
Last week I took a survey (for well-known scientific open access journal) with a small screen phone and I thought I've never seen a mobile survey like this, almost perfect:
- Neutral & very clean template (closed to skeletonquest flatblue )
- Clear and short questions & answer options
- Mainly based on radio questions displayed page per page with auto-submission selecting the option
- Few arrays with only 3 columns max.
- Lateral transition of the page (header staying in place... only questions seem moving). Big impression of fluidity