0
이것이 왜 효과가 있을지 생각하십니까? 그것은 개인 및 모든 팁은 감사하겠습니다 :(비 공유 그대로 죄송합니다 나는 다른 코드를 제공 할 수 없습니다.resize (javascript) 함수를 실행할 때 내 AJAX 함수를 실행할 수 없습니다.
<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>
실제로 지금 작업 중입니다. 하지만 당신의 대답이 저를 충분히 도왔을 것 같습니다. 그것은 이제 문제를 해결하여 두 부분을 모두 얻는 방법입니다 ... – Sphvn