I normally add ?tstmp=<dtml-var "ZopeTime().strftime('%Y%m%d%H%M%S')> to the end of the URL in the href for URLs that are dynamic. This makes the URL not match anything in the browser's cache and actually refresh the image from my site. __________________________________________________________________ Jim Sanford . Database Engineer / \ / Accelerated Technology, Inc. / / 720 Oak Circle Drive East / / \ Mobile, AL 36609 / / \ Voice: 334-661-5770 fax: 334-661-5788 / \ E-Mail: jsanford@atinucleus.com Web: http://www.atinucleus.com Source Code, No Royalties, Any CPU...It just make sense ! __________________________________________________________________ ----- Original Message ----- From: Joshi, Sunit <sjoshi@ingr.com> To: <zope@zope.org> Sent: Tuesday, November 16, 1999 4:50 PM Subject: [Zope] Refreshing a Window
Hello All I'm generating chart gifs which are loaded when the user clicks on a button, however it seems that sometimes I have to click on the Refresh button to get the new chart to be displayed. Otherwise it shows the old one (in cache). Is there a way to call the refresh action after I click the button to generate GIFs and show the DTML showCharts which has the line <img src="http://RPA/Html/Graph1.gif" alt="LoginTime"> in the dtmlShowCharts to load the new file. I'm sure this is not the right way to do it, but if I make an image Object how do I reload it each time I make a new chart.
thanks Sunit INTERGRAPH SOFTWARE SOLUTIONS Sunit Joshi Support Engineer Process and Building Solutions ____________________________________ ___
Huntsville, Alabama 35894-0001 Tel: (256)730-3059 Fax: (256)730-3028 mailto:sjoshi@ingr.com
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope No cross posts or HTML encoding! (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )