471,896 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,896 software developers and data experts.

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.

Dec 10 '08 #1
5 1547
4,059 Expert 2GB
comments removed... I realized what I posted would not work.
Dec 10 '08 #2
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
Dec 13 '08 #4
971 Expert 512MB
I haven't used this module before but it might help you with your needs.


Dec 13 '08 #5
4,059 Expert 2GB
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
reply views Thread by YellowAndGreen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.