homepage Welcome to WebmasterWorld Guest from 54.204.141.129
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Random number / cache buster
Random number / cache buster
ollym




msg:1484004
 12:38 pm on Jun 30, 2004 (gmt 0)

Hi there.
Through an affiliate network I am going to be linking to a mobile phone company. The network has provided me with banner code but wants me to add a random number or timestamp into the code to ensure the banners are not stored in the user's cache.

Can anyone give me the java script to do this -or offer advice. The pages the banners are displayed on are shtml so I could use SSI if need be, but cannot use PHP, ASP etc to do it.

Thank You

 

crosenblum




msg:1484005
 5:55 pm on Jun 30, 2004 (gmt 0)

Sure that's easy enough.

First off, you'll be using javascript to grab his banner, and by adding a random number to the end of the url, that prevents caching.

[developer.irt.org...]

Has a good script for random numbers

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved