In a table report, I want the HTML page to automatically refresh after every X seconds.
I tried this
<meta http-equiv=”refresh” content=”60″ >
I am using BIRT 2.2.
Add a text element set the type to html and enter a
value similar to the following.
<form name=”input” onSubmit=”return reloadPage();”>
<script type=”text/javascript”>
function reloadPage() {
//alert(“Reload time”);
var temp = new String(location.href);
var targetURL = new String();
if(temp.indexOf(“__overwrite=”) != -1 ){
targetURL = temp.substring(0, temp.indexOf(“&__overwrite”) -1);
}else{
targetURL = temp;
}
targetURL += “&__overwrite=true”;
//alert( targetURL );
location.replace(targetURL);
return false;
}
timer=setTimeout(‘reloadPage()’, 5000);
</script>
</form>