...

View Full Version : clientHeight not supported by FF



soulfly
05-07-2007, 09:41 AM
Hi everyone,
Plz see the code below.


<script type="text/javascript">
var tdLeftheight, tdRightHeight;
tdLeftheight=document.getElementById("tdLeftContent").clientHeight;
tdRightHeight=document.getElementById("tdSidePanelLinksUP").height;
//alert(tdLeftheight +' '+tdRightHeight);
document.getElementById("tdSidePanelLinksDown").style.height= tdLeftheight-tdRightHeight;
</script>

The clientHeight attribute is not supported by FF. Any alternative to this?

Help is highly appreciated.

Best regards,
Soulfly

Mr J
05-07-2007, 01:50 PM
Try offsetHeight

soulfly
05-09-2007, 12:45 PM
hello Mr J,
thanks much for the help. I really appreciate :thumbsup:

Regards,
Soulfly

david_kw
05-09-2007, 03:22 PM
Here is a compatibility table you might find useful in the future.

http://www.quirksmode.org/viewport/compatibility.html

david_kw



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum