Gif Image delaying user while processing script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • virtualweb
    New Member
    • Aug 2007
    • 30

    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
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    comments removed... I realized what I posted would not work.

    Comment

    • KevinADC
      Recognized Expert Specialist
      • Jan 2007
      • 4092

      #3
      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.

      Comment

      • virtualweb
        New Member
        • Aug 2007
        • 30

        #4
        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

        Comment

        • eWish
          Recognized Expert Contributor
          • Jul 2007
          • 973

          #5
          I haven't used this module before but it might help you with your needs.

          CGI::ProgressBa r

          --Mork

          Comment

          • KevinADC
            Recognized Expert Specialist
            • Jan 2007
            • 4092

            #6
            Originally posted by virtualweb
            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
            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.

            Comment

            Working...