Welcome, Guest
Username: Password: Remember me

TOPIC: Control the Navigator

Control the Navigator 3 years 4 months ago #57874

  • pelle
  • pelle's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 15
  • Thank you received: 1
  • Karma: 1
How can I control the Navigator? For instance I would like to have the next button disappear at some question numbers. I intend to replace it with a flash app that would move to the next question when done. I am looking for relevant code in the files index.php, group.php, question.php and others but find it hard to understand how it all works. I know the basics of php programming.

I use
LimeSurvey Version 1.91RC1 Build 9696
template: clear_logo

Thank you
The administrator has disabled public write access.

Re: Control the Navigator 3 years 4 months ago #57880

  • DenisChenu
  • DenisChenu's Avatar
  • NOW ONLINE
  • Moderator Lime
  • Posts: 6221
  • Thank you received: 791
  • Karma: 238
Hello,

You can use some javascript with or without jquery. I don't know how you can activate something after a flash effect, but here is an example with :
Waiting an image loafing
Waiting 5 seconds
Move to next question.

I using this script:
<script type="text/javascript" charset="utf-8">
  $(document).ready(function() {	
    $("input.submit").hide();
    $("#imageload").load(function() {
      $('#movesubmit').val('movesubmit');
        window.setTimeout(function() {
         $('#limesurvey').submit();
        }, 5000)
     });
  });
</script>
With the image identify by id="imageload".

You can hav a look at this demo : demonstration.sondages.pro/27177
The administrator has disabled public write access.

Re: Control the Navigator 3 years 4 months ago #57891

  • pelle
  • pelle's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 15
  • Thank you received: 1
  • Karma: 1
Thanks, it looks great. Where should i put this script to get it to work in a specific question?
The administrator has disabled public write access.

Re: Control the Navigator 3 years 4 months ago #57895

  • pelle
  • pelle's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 15
  • Thank you received: 1
  • Karma: 1
I got this to work, dont bother my last question, it works great now. I did put the code in the html of the specific question. Im very thankful for your help.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.110 seconds
Donation Image