Solved

resizing applet when browser window size changes

Posted on 1997-05-06
4
306 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
  • 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

This article will give core knowledge of JavaScript and will head in to your first JavaScript program. I am Durvesh Naik and I am here to deal with this series of JavaScript. I will teach you JavaScript in part wise , as its quite boring to read big…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

706 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now