Forums
This topic is locked
getting innerheight with ASP
Posted 21 May 2002 17:14:38
1
has voted
21 May 2002 17:14:38 Matthijs Horsman posted:
Hello all,I got this this script to get the innerwidth and height of the browser window in Javascript
<font size=1><script language="JavaScript"><!--
var width = 640, height = 480; // defaults
if (document.layers) {
width = window.innerWidth;
height = window.innerHeight;
}
else if (document.all)
{
width = document.body.clientWidth;
height = document.body.clientHeight;
}
else if (document.all || document.getElementById)
{
width = window.innerWidth;
height = window.innerHeight;
}
//-->
</script></font id=size1>
I was wondering if there is the same for ASP? I don't think so... but maybe...
Thanx in advance...
Matthijs
----------------
UD4/WY2K/IIS/ASP-VB
www.chaps.nl
Edited by - matthijshorsman on 21 May 2002 17:15:05
Replies
Replied 23 May 2002 00:50:17
23 May 2002 00:50:17 Josh Cooper replied:
No, there isn't. Remember that ASP "Active Server Pages" means that the code runs on the server. Not the client.
Replied 23 May 2002 01:18:57
23 May 2002 01:18:57 Matthijs Horsman replied:
i was afraid of that, but as i told i solved the "problem" with javascipt...
thanks for the reply, i can stop searching now.... <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Matthijs
----------------
UD4/WY2K/IIS/ASP-VB
www.chaps.nl
thanks for the reply, i can stop searching now.... <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Matthijs
----------------
UD4/WY2K/IIS/ASP-VB
www.chaps.nl