Solved

resizing applet when browser window size changes

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Jquery-Javascript setAttribute function help 7 18
Asp in script 6 36
Implement a function similar to grep in vanilla Javascript 3 18
JQuery Syntax... 4 31
In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
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…

808 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