Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: How to display progress bar on page load for each question

How to display progress bar on page load for each question 3 years 5 months ago #62225

  • joeculler
  • joeculler's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
Since my android client is 1.5, rendering each page is very slow.
I want to display progress bar after click "Next" button for the question page.
Anyone knows how to do? Thank you.
The administrator has disabled public write access.

Re: How to display progress bar on page load for each question 3 years 5 months ago #62234

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4362
  • Thank you received: 827
  • Karma: 381
I don't understand. Do you want to show progress in the survey or page loading?
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: How to display progress bar on page load for each question 3 years 5 months ago #62238

  • joeculler
  • joeculler's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
tpartner wrote:
I don't understand. Do you want to show progress in the survey or page loading?

Sorry for the confusion! I want to show progress in page loading. Thanks.
The administrator has disabled public write access.

Re: How to display progress bar on page load for each question 3 years 5 months ago #62247

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4362
  • Thank you received: 827
  • Karma: 381
I don't think you can do that. The load time is not entirely a function of LimeSurvey or the server - it depends on the client.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: How to display progress bar on page load for each question 3 years 5 months ago #62258

  • joeculler
  • joeculler's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
Hmm. We use jQuery, creating a waiting/loading page for processing long requests
should not be a problem, I think.
There's an example to archive this:
www.java2s.com/Code/JavaScript/Ext-JS/Wa...llstopafter5secs.htm
The administrator has disabled public write access.

Re: How to display progress bar on page load for each question 3 years 5 months ago #62271

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4362
  • Thank you received: 827
  • Karma: 381
As far as I know, the JavaScript solutions are to be displayed while a process occurs after the page is loaded (like an AJAX call), not while the page loads.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: How to display progress bar on page load for each question 3 years 5 months ago #62291

  • joeculler
  • joeculler's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
Thanks for clearing things up. Is it possible to do:
Assuming I have three questions, when the question one page is loaded,
Press "Next" button -> show progress bar -> show question two -> press "Next" button ->
show prorgress bar -> show question three ... etc.
Thank you again.
The administrator has disabled public write access.

Re: How to display progress bar on page load for each question 3 years 5 months ago #62292

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4362
  • Thank you received: 827
  • Karma: 381
Not as far as I know because the Next button causes a complete reload of the page so there is nothing to display the progress on while this happens. No page exists in the interim.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.

Re: How to display progress bar on page load for each question 3 years 5 months ago #62296

  • joeculler
  • joeculler's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 11
  • Karma: 0
Ah, that's too bad. I'm wondering if user clicks
"Next" button, then lock that button until the
next question page shows up. As I mentioned,
rendering each page takes about 4 - 5 seconds on
the client, users could click "Next" button several
times in each question page, I want to prevent that.
Or do you have idea to solve my issue? Thank you.
The administrator has disabled public write access.

Re: How to display progress bar on page load for each question 3 years 5 months ago #62304

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4362
  • Thank you received: 827
  • Karma: 381
In the current version 1.91 there is already a function in place to disable the navigation buttons while the form submits.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Moderators: ITEd
Time to create page: 0.110 seconds
Donation Image