gdnew has asked for the wisdom of the Perl Monks concerning the following question:

Hi Perlmonks,
I have searched for the progress bar using the search provided. But it only give me a progress bar which is work in server side.

Instead of poping up a progress bar in server side. Can we pop it up in the browser/client side using perl/Tk( assuming the client doesn't have Tk module in their browser)

If that is not possible..... is there any other way to create a pop up progress bar in the user browser? I want it to be progressed in a certain part of my perl program.
Thank you in advanced.

Replies are listed 'Best First'.
Re: progress bar pop up in browser
by archen (Pilgrim) on Mar 25, 2002 at 13:30 UTC
    seems to me the most practical way to do this would be to use JavaScript to create a pop-up window when a link/button is clicked, and in that pop up window call the script and display the server side progress bar. It's sort of hard to say since I don't know what is progressing...
Re: progress bar pop up in browser
by gryphon (Abbot) on Mar 25, 2002 at 17:43 UTC

    Greetings gdnew,

    This isn't really so much a Perl question as it is a browser GUI + network communication question. Essentually, at least as far as I understand your question, you want to have a client-side visual progress bar that tracks something that's progressing on the server. There are many ways that you could handle this, each have advantages and disadvantages.

    You could try:

    • HTML with Client pull
    • HTML with Server push
    • Java applet
    • Flash (Shockwave) thing that pings much like Client pull
    • At least one more option I haven't thought of yet

    What sort of things are you trying to do with this progress bar thing? What are you wanting to show progressing? That will help isolate perhaps what method should be used.

    -gryphon
    code('Perl') || die;

      Hi gryphon.
      Oh yes you're right.
      I have found the javascript for these.