Re: Off-topic -- how can I get the client browser

THAPA Damar <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Hi,

Thanks, Garth and Steve, for the pointers.  I will study, and try later.

Damar

G D wrote:

>The answer is: you can not...  at least not without bouncing the client on a redirect first. 
>
>The browser does not send that info to the server, so what you would have to do is capture it using Javascript and submit it back to the server...  (you'd use an onload event in the body tag to auto submit a form containing the javascript values)
>
>I think you'll find that the info is not very useful anyway, rendering a page to a certain size in HTML (so that it actually looks good) is a daunting task (consider: there is no guarantee that the browser is maximized and screen resolution != browser size).
>
>  
>
>>Here's a Java example:
>>
>>    // Set location of messageFrame
>>    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
>>    messageFrame.setLocation( (screenSize.width - 200) / 2 ,
>>                              (screenSize.height - 100) / 2);
>>
>>
>>In javascript the following code provides the resolution height and
>>width:
>>
>>    var SCRwidth  = window.screen.width;
>>    var SCRheight = window.screen.height;
>>
>>How can I get the same thing in Java?  Any java, or barracuda, classes  
>>for this purpose?
>>
>>    
>>
>
>
>
>Northern.CA ===--
>http://www.northern.ca 
>Canada's Search Engine
>_______________________________________________
>Barracuda mailing list
>[email protected]
>http://barracudamvc.org/lists/listinfo/barracuda
>
>  
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.