Gossamer Forum
Home : General : Perl Programming :

banner rotator call from a cgi script

Quote Reply
banner rotator call from a cgi script
Im using a banner rotation script on all of my pages. This script usually uses SSI but also has a non SSI version which I'm using to include the banner within other cgi scripts generating html output.
Usually everything works fine, but as soon as a cgi script calls itself (for example rate.cgi (part of links 2.0) switches from rate a resource to ressource sucessfully rated) the banners does not load on the 2nd time.

The syntax to call the banner rotator is:


<A HREF="/cgi-bin/showsell/showsell.pl?redirect=yes&ssi=no" target=0>
<IMG SRC="/cgi-bin/showsell/showsell.pl?ssi=no"

I cant get support from the author of this program so I was wondering if anyone else has an idea what the problem is.

Thanks for your help


Quote Reply
Re: banner rotator call from a cgi script In reply to
There is a probably in a bug in the program (like WebAdverts) that does not print the banner on "spanning pages" of CGI scripts (like confirmation pages/success pages).

One suggestion is to hack the Banner script you are using to print a default banner if the banner is called within the same CGI script.

Regards,

Eliot Lee
Quote Reply
Re: banner rotator call from a cgi script In reply to
Most likely the image is cached. You should add a random string to the end as in:

On main page:

IMG SRC="/cgi-bin/showsell/showsell.pl?ssi=no&rand=1234

On results page:

IMG SRC="/cgi-bin/showsell/showsell.pl?ssi=no&rand=5678

So that it doesn't cache.

Cheers,

Alex

--
Gossamer Threads Inc.