Forcing Page Refresh AFTER creating png image
Posted: Sat Sep 28, 2002 9:18 pm
I have a page that creates a chart (.png) from data in a database. The .png is written to disk succesfully. Futher down in the page, the image is read in and displayed via normal html img tag.
If I add a new datapoint and link to the page, it deletes the old graphic (that's good), it creates a new graphic (that's what I want), and writes it to disk (also desired), but displays the cached graphic. The only way I can get it to update is to refresh the page.
How can I force the page to use the newly-created graphic? (Alterntatively, How can I force a page refresh - an option I would rather avoid.)
If I add a new datapoint and link to the page, it deletes the old graphic (that's good), it creates a new graphic (that's what I want), and writes it to disk (also desired), but displays the cached graphic. The only way I can get it to update is to refresh the page.
How can I force the page to use the newly-created graphic? (Alterntatively, How can I force a page refresh - an option I would rather avoid.)