Solved

resizing applet when browser window size changes

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
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…
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…

803 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