469,270 Members | 1,031 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

Gif Image delaying user while processing script

Hello Guys:

I have a multi-part form and one of the steps needs to do so many processes that if an internet connection is slow the user may get tired of waiting a quit rather than continue with the next step.

I have seen forms that let the user know a process is taking place and in a few minutes he will be able to continue by presenting a gif image with dots or cyrcles that go arround etc.

What code can I add to the beginning of my script that will present this gif image for one minute, (while the script does all the processes needed ), and then proceed to the results that confirm the user that the processes completed successfully.

Thanx
VirtualWeb
Dec 10 '08 #1
5 1522
KevinADC
4,059 Expert 2GB
comments removed... I realized what I posted would not work.
Dec 10 '08 #2
KevinADC
4,059 Expert 2GB
The issue here is not a perl issue. Your solution will be dhtml/html/javascript. Perl will only be used to print the dhtml/html/javascript code to the browser.
Dec 10 '08 #3
Hello KevinADC:

I was hoping there was a way using localtime that would stamp the time the user reached that subroutine.. and then adding one minute to it would allow it to continue..all the while showing a gif image to tell the user a process is underway.

This is above my expertise but i hope the logic is correct.

Thanx for your imput
VirtualWeb
Dec 13 '08 #4
eWish
971 Expert 512MB
I haven't used this module before but it might help you with your needs.

CGI::ProgressBar

--Mork
Dec 13 '08 #5
KevinADC
4,059 Expert 2GB
@virtualweb
No. Not that simple. Once the image is displayed how will you stop displaying it? Like I suggest, you need to learn a bit of DHTML to pull this off. All your perl script will do is print the DHTML code to the browser just like it does with all html code. The module eWish posted a link to does something similar using javascript and CSS, which combined are often refered to as DHTML.
Dec 13 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

9 posts views Thread by matthiasjanes | last post: by
9 posts views Thread by Deepa | last post: by
15 posts views Thread by Tony Gahlinger | last post: by
1 post views Thread by John Thompson | last post: by
8 posts views Thread by Alexander Fischer | last post: by
21 posts views Thread by DP | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.