progress bar

Posted on 2006-05-14
Last Modified: 2013-12-25
i have 2 cgi pages
a button on test1.cgi
when user clicks on button user is directed to test2.cgi
problem is test2.cgi takes 20 to 30 sec to execute, and the browser shows test1.cgi for those 20 secs.....this can be a bad impression on the user, he might think nothing is happening...
is there a way i can show a progress bar displaying some message.....
Question by:perlperl

    Author Comment

    i don't want to show % and fancy stuff....
    i just want to show something we see while attaching file on yahoo....just a bar, just to make sure something is happening in background....

    Author Comment

    i found this one useful

    but when i first opne the home page, the progress bar is already displayed. is there a way i can hide "progressBar" and display only when user clicks button "Submit Content";
    LVL 19

    Expert Comment


    Accepted Solution

    The most easy way I can recommend you handle this is using javascript.  Just embed the java script you find inside your cgi script at the very top of the script, it will display as the rest of the script is being loaded.  Seach the web for "javascript page loaders" or "javascript status bar".  There is no easier way of doing what you are trying to do in pure perl language on a webserver.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
    This article will show, step by step, how to integrate R code into a R Sweave document
    The viewer will learn how to count occurrences of each item in an array.
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now