wildboy
asked on
resizing applet when browser window size changes
I'm looking for strategies to dynamically changing the size of the
frame that an applet displays in when the user changes the dimensions
of their browser window... This would also be good to set the initial
size of the applet when it's initially loaded.
So, can anyone give me advice on:
1) determining the browser's dimensions,
2) detecting when theose dimensions change, and
3) the way to change the applets frame dimensions and repain
frame that an applet displays in when the user changes the dimensions
of their browser window... This would also be good to set the initial
size of the applet when it's initially loaded.
So, can anyone give me advice on:
1) determining the browser's dimensions,
2) detecting when theose dimensions change, and
3) the way to change the applets frame dimensions and repain
ASKER
As far as I know (and it doesn't work in IE3.02), you can't use percentages in the width and height of an applet...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It's surprising to me that there may currently be no way to detect a container change size event... I want to look into the object model of Netscape and IE to see if that's really true... so I remain curious about whether and how this can be done... Thanks
How about setting the height and width of the applet in a percentage width and height instead of pixels.
<APPLET WIDTH="85%" HEIGHT="35%" ......>