Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Knute Johnson Newsgroups: comp.lang.java.programmer Subject: Re: determining screen resolution over the web Date: Fri, 01 Aug 2014 08:12:35 -0700 Organization: A noiseless patient Spider Lines: 19 Message-ID: References: <7fjlt9d0e20gdsn3feh9vlu5jq9035qofu@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 1 Aug 2014 15:12:30 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="aba33539224e5c782fe0c4053f7756fd"; logging-data="9747"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/M5KD2AOPNXHuGl7fFGFWj" User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: Cancel-Lock: sha1:MnlHb9uXScr8otadZ/VSYdFM56Q= Xref: csiph.com comp.lang.java.programmer:29489 On 8/1/2014 07:41, Joshua Cranmer 🐧 wrote: > On 7/31/2014 6:40 PM, Knute Johnson wrote: >> I thought you were asking how to size things for a device that could >> have significantly different screen resolutions. If you want to >> determine the browser you can use the HTTP_USER_AGENT environment >> variable and select your response accordingly. > > The penalty for suggesting using the User-Agent information to send data > is execution by being electroplated. > > More seriously, though, just don't do it. > It is easily faked if that's what you're saying. But I do like the CSS options better. -- Knute Johnson