troubleshooting Question

Need to bust cache when including a Javascript file

Avatar of adworldmedia
adworldmediaFlag for United States of America asked on
JavaScript
5 Comments1 Solution233 ViewsLast Modified:
I've programmed a bit of code, that injects some Javascript onto a page, and i've noticed in IE only (FF doesn't do this) it caches the info, and if the same code is placed multiple times on the page, it displays the exact same info.

Here is what the javascript looks like:

<script language="javascript" src="http://{url}/roturl.aspx?js=1&pid=4&loc=~/banners/1/1/300x250&data=gNcdv%2fmwhskVxLi%2bQNJhAfgJYFlJTJ%2f9Tq73nMQwXjD5hfENhjycy20jEkk2AD5ou6Te83wPL3eafsrZgaxOwKLtcAMqF7mRk6ei86MKBKJfDIzZXbnSKg%3d%3d"></script>

I would like to use javascript to generate a random number, and then append it to the Querystring in the src= field.

How would I do that?
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 5 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros