Jon,
This is exactly why I recommend using an actual Java applet as opposed to
JavaScript. The only problem with using an applet is that the client could
have Java turned off. Of course, the client could also have JavaScript
turned off. In any case, you could always "default" to say 800x600 if the
parameters are not set.
Regards,
Brian
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Jon
Wilmoth
Sent: Tuesday, June 01, 1999 3:13 PM
To: [EMAIL PROTECTED]
Subject: Re: how to determine the screen size ?
Easier still would be to write a little javascript with the window.onload
event handler that could set hidden fields that would be passed back to the
processing servlet.
BTW. IE & Nav differ in their javascrip implementation for window size, this
may or may not concern you.
----- Original Message -----
From: Brian P. Rickabaugh <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 01, 1999 11:15 AM
Subject: Re: how to determine the screen size ?
> Guillaume,
>
> What we've done in the past is to write a SMALL java applet that
determines
> the current display resolution using java.awt.ToolKit. That applet then
> redirects the browser to another URL and passes the width and height to a
> servlet.
>
> Regards,
>
> Brian
>
> -----Original Message-----
> From: A mailing list for discussion about Sun Microsystem's Java Servlet
> API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of
> guillaume ORIOL
> Sent: Tuesday, June 01, 1999 1:42 PM
> To: [EMAIL PROTECTED]
> Subject: how to determine the screen size ?
>
>
> Do someone know how to determine the screen size (or better the
> window'client size) of the client browser from a servlet?
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html