Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / June 2006



Tip: Looking for answers? Try searching our database.

Javascript resize works in IE not FF

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
eoin.haluch@gmail.com - 29 Jun 2006 15:28 GMT
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>
Jesse - 30 Jun 2006 15:33 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

> Hi,
>
[quoted text clipped - 9 lines]
> getPageHeight();
> </script>
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.