Solved

resizing applet when browser window size changes

Posted on 1997-05-06
4
316 Views
Last Modified: 2010-08-05
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
0
Comment
Question by:wildboy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 1

Expert Comment

by:moorep
ID: 1265435
you can't really determine the dimensions of a window in NN 3.x.
How about setting the height and width of the applet in a percentage width and height instead of pixels.
<APPLET WIDTH="85%" HEIGHT="35%" ......>
0
 

Author Comment

by:wildboy
ID: 1265436
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...
0
 
LVL 1

Accepted Solution

by:
Erich050197 earned 100 total points
ID: 1265437
You can use javascript to generate new html with a different size for the applet specified, but there is no current way to tell a script what you want. Javascript v1.2 has a resize event handler and can get window size info.  It's in Communicator 4.0 for Windows 95/NT.  It will allow what you want.
0
 

Author Comment

by:wildboy
ID: 1265438
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
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question