Hi Michael,
Unfortunatly not tonite, sorry mate :)
Ill take a raincheck on the beer.
Anything after the ? is called the GET string. Is has NO bearing on the
image whatsoever, unless your image is dynamically created and makes use
of the data passed to it. What is does do is make netscape think that
the data in the SRC="" bit has changed and therefore it cant use its
internal cache.
Matt
Michael Lake wrote:
>
> 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
--
Matt Allen Linux/PHP eCommerce
Solutions
Linux Worx Linux Networking
www.linuxworx.com.au Consulting
[EMAIL PROTECTED]
0413 777 771
--
SLUG - Sydney Linux Users Group Mailing List - http://www.slug.org.au
To unsubscribe send email to [EMAIL PROTECTED] with
unsubscribe in the text