By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,710 Members | 1,887 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,710 IT Pros & Developers. It's quick & easy.

Gif Image delaying user while processing script

P: 30
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
Share this Question
Share on Google+
5 Replies


KevinADC
Expert 2.5K+
P: 4,059
comments removed... I realized what I posted would not work.
Dec 10 '08 #2

KevinADC
Expert 2.5K+
P: 4,059
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

P: 30
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
Expert 100+
P: 971
I haven't used this module before but it might help you with your needs.

CGI::ProgressBar

--Mork
Dec 13 '08 #5

KevinADC
Expert 2.5K+
P: 4,059
@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.