I have a page where I need to generate a png graphic on the fly before the page is complete. Currently I use the qx command to call a java program at the top of the perl script. qx returns after the png is rendered and the page can finish being created for the user.
The problem with this is that the png graphic needs about 10 seconds to render and during that time nothing is happening. I would like it if there was some sort of "Please wait while the plot is being drawn" kind of message while the plot is being rendered. I can't figure out how in the world to do such a thing. Can anyone think of anything?
Sorry, was going from memory. If you have problems with buffering in Perl, you can make a handle "hot" with "$| = 1;" Anyway, I figured since you were doing heavy processing in the background, you would want to get the "wait" message out of the buffer as soon as it hit the print statement. Check out http://perl.plover.com/FAQs/Buffering.html
Web Design On Linux: Sure It Takes Longer To Get It Right In IE, But Who Really Cares?