Hi ,
I am a coding novice and have a 5 page site loading external pages with ajax into a div called dMiddle. When the page loads the css is not working and my footer is overlapping the content of dMiddle. Once I click a link it resizes to the correct size. I have my pageholder set to auto height and values for other divs but I assume it's the javascipt function causing the problem. Here is the code:
function fnReset(){ //this fnReset() call is found in the simpleAjax.js
document.getElementById('dTorso').style.height="auto";
document.getElementById('dLeft').style.height="auto";
document.getElementById('dMiddle').style.height="auto";
document.getElementById('dRight').style.height="auto";
var disMaxHt=Math.max(parseInt(document.getElementById('dTorso').scrollHeight),parseInt(document.getElem entById('dLeft').scrollHeight),parseInt(document.getElementById('dMiddle').scrollHeight),parseInt(do cument.getElementById('dRight').scrollHeight));
document.getElementById('dTorso').style.height=disMaxHt + "px";
document.getElementById('dLeft').style.height="100%";
document.getElementById('dMiddle').style.height="100%";
document.getElementById('dRight').style.height="100%";
}
any suggestions would be greatly appreciated!![]()




Reply With Quote

Bookmarks