On Jan 21, 2005, at 10:05 AM, Chad Gard wrote:
On Jan 21, 2005, at 9:56 AM, David Dorward wrote:
How about passing it the data it needs to make a suitable database request?
That's what I'll do if I can't make it work the way I want. However, I'd like to be able to avoid the overhead of additional queries, and additional browser connections to the web server. I already get all the data I need for other parts of the page, but there could be as many 25 small graphs in the page, with 9 being typical.
Do these need to all be generated on-the-fly? Or is there a way to create them first (one time a day, for example) and serve them as static images?
You could also have your main script generate the images all at once (at the same time as you are generating the HTML), put the graphics in temp files, and then put the appropriate URLs in the img tags. This will eliminate the overhead of calling a helper script 9-25 times for a single page. If you are on an intranet, serving 25 small images should be almost instantaneous.
Sean
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>