Re: Javascript resize works in IE not FF
- From: "Jesse" <nospam@xxxxxxxxxx>
- Date: Fri, 30 Jun 2006 14:33:00 GMT
Take a look at the Yahoo UI library -- it's got good cross-browser methods
for determining the size of the viewport.
Docs here: http://developer.yahoo.com/yui/dom/
Source here: http://sourceforge.net/projects/yui
<eoin.haluch@xxxxxxxxx> wrote in message
news:1151591312.527804.60160@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,
I'm using javascript to set div sizes dependant on the size of the
window, it works in IE6 < but not IE 7 of FF. Any ideas?
<script language="JavaScript" type="text/javascript">
function getPageHeight() {
var myFooter =(document.body.scrollHeight > document.body.clientHeight)
? document.body.scrollHeight : document.body.clientHeight;
document.getElementById("sidebar").style.height = myFooter-175;
}
getPageHeight();
</script>
.
- References:
- Javascript resize works in IE not FF
- From: eoin . haluch
- Javascript resize works in IE not FF
- Prev by Date: Re: javascript, replace works only with FF, why?
- Next by Date: Re: AJAX.NET and prototype.js
- Previous by thread: Javascript resize works in IE not FF
- Next by thread: testing for image load completion
- Index(es):