Any idea why this would have an effect? Sorry I can't give the other code as it is private and non shareable :( Any tips would be appreciated.
<body onresize="resizeWindow()" onload="resizeWindow()">
Content deedeedum.AJAX function to get data and display every 2sec.
</body>
<script type="javascript/text>
/**** Page Rescaling Function ****/
function resizeWindow()
{
var windowHeight = getWindowHeight();
document.getElementById("content").style.height = (windowHeight - 0) + "px";
document.getElementById("navigation").style.height = (windowHeight - 0) + "px";
}
function getWindowHeight()
{
var windowHeight=0;
if (typeof(window.innerHeight)=='number')
{
windowHeight = window.innerHeight;
}
else {
if (document.documentElement && document.documentElement.clientHeight)
{
windowHeight = document.documentElement.clientHeight;
}
else
{
if (document.body && document.body.clientHeight)
{
windowHeight = document.body.clientHeight;
}
}
}
return windowHeight;
}
</script>