Matt Allen wrote:
> Try this:
> <img src="/images/imagename.gif?< INSERT RANDOM NUMBER HERE?">
>
> if you are writing the IMG tag from CGI, tack a random number on the end
> after the ?
BINGO !!!!! (Sorry for shouting but I'm ecstatic)
It now updates the gif.
my $seconds = time();
# Create graph.
system("/usr/local/bin/graph -L 'Test gif $Ao'
/home/mikel/public_html/tmp/data >|
/home/mikel/public_html/tmp/temp.meta");
system("/usr/local/bin/plot -T gif --bitmap-size 300x300
/home/mikel/public_html/tmp/temp.meta >|
/home/mikel/public_html/tmp/order1.gif");
# Print graph to CGI object.
print $q->img({-expires=>'+30s',
-pragma=>'no-cache',
-cache_control=>'no-cache',
-last_modified=>"$now",
-src=>"http://b4114a/~mikel/tmp/order1.gif?$seconds"});
I've incorportaed it into my molecular modeling program and
that works now as well.
********Thanks to all who contributed the many suggestions
*************
My "HTML Definative Guide" only indicates that the ? is a
search parameter. What does it do in the context of an
image? I'll have to read up on that one.
PS. Matt. If you are at the meeting tonight and going to
dinner I'll buy you a drink.
Thanks.
--------------------------------------------------------------------
Michael Lake
University of Technology, Sydney
Email: mailto:[EMAIL PROTECTED] Ph: 02 9514 1724 Fx: 02
9514 1628
URL: http://www.science.uts.edu.au/~mikel
Linux enthusiast, active caver and interested in anything
technical.
--------------------------------------------------------------------
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text