Greetings,

i am working on a program that is running several things through a web interface and need to tell the user to wait for the long opperations to complete.
i have a bit of code which looks basically like this

&html_start; &do_long_opp; .... sub html_start { .... print "This is gonna take a hellaofa long time<br>\n"; }
at the end of html_start i have a print statement telling the user to wait as this will take a while, but it doesnt show any of the page content other then the bg color until do_long_opp has finished.... well most of the time, sometimes it does it the way i want (and a do_long_opp can take upto 1 minute to run i really need to tell people to wait and not give up hope)
so, any thoughts on how to make this do things that way, with the displaying and then the long things that take forever?
jcpunk

by the way thanks for all the help that was, is, and will be


In reply to displaying output at the correct moment by jcpunk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.