Auto-refreshing site saved in web-browser cache
Hi,
I use the below code to refresh a portlet on my website:
-
<script type="text/javascript">
function refreshMe<portlet:namespace/>() {
var url = "${ajaxRender}";
jQuery("#<portlet:namespace/>nav").load(url);
}
setInterval('refreshMe<portlet:namespace/>();', 15000);
</script>
However, in Internet Explorer 8, the portlet is not properly refreshed. Instead a version saved in the cache turns up.
I have tried appending some random parameter at the end of the URL using the below code (in order to get a different URL from the one saved in the cache):
-
var randomvar = "Hello"+System.currentTimeMillis();
jQuery("#<portlet:namespace/>nav").load(url,{test:randomvar});
Unfortunately, it doesn't work. Do anybody know how I can solve the problem?
P.S. The portlet that should be automatically updated is the portlet with the tabs and the graph at
this site.