Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #29487

Re: determining screen resolution over the web

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 Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: determining screen resolution over the web
Date Fri, 01 Aug 2014 09:41:59 -0500
Organization A noiseless patient Spider
Lines 14
Message-ID <lrg90f$qh8$1@dont-email.me> (permalink)
References <btglt914p7l0d1ertsa8d5326hji5g90vv@4ax.com> <lrehts$u15$1@dont-email.me> <7fjlt9d0e20gdsn3feh9vlu5jq9035qofu@4ax.com> <lrek5g$atg$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Fri, 1 Aug 2014 14:42:45 +0000 (UTC)
Injection-Info mx05.eternal-september.org; posting-host="8cedddb29338592f734c41b16a68fadc"; logging-data="27176"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/yf27S5cM+qRqLvFXIbS25MeO1ycY4Hg0="
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0
In-Reply-To <lrek5g$atg$1@dont-email.me>
Cancel-Lock sha1:yKL4zo5IEr3xugiltjBQQwwBMTU=
Xref csiph.com comp.lang.java.programmer:29487

Show key headers only | View raw


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.

-- 
Beware of bugs in the above code; I have only proved it correct, not 
tried it. -- Donald E. Knuth

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

determining screen resolution over the web Roedy Green <see_website@mindprod.com.invalid> - 2014-07-31 15:33 -0700
  Re: determining screen resolution over the web Knute Johnson <eternal@knutejohnson.com> - 2014-07-31 16:02 -0700
    Re: determining screen resolution over the web Roedy Green <see_website@mindprod.com.invalid> - 2014-07-31 16:15 -0700
      Re: determining screen resolution over the web Knute Johnson <eternal@knutejohnson.com> - 2014-07-31 16:40 -0700
        Re: determining screen resolution over the web Joshua Cranmer 🐧 <Pidgeot18@verizon.invalid> - 2014-08-01 09:41 -0500
          Re: determining screen resolution over the web Knute Johnson <eternal@knutejohnson.com> - 2014-08-01 08:12 -0700
        Re: determining screen resolution over the web Gene Wirchenko <genew@telus.net> - 2014-08-01 11:01 -0700
        Re: determining screen resolution over the web Eric Sosman <esosman@comcast-dot-net.invalid> - 2014-08-01 16:07 -0400
  Re: determining screen resolution over the web Arne VajhĂžj <arne@vajhoej.dk> - 2014-07-31 22:22 -0400
  Re: determining screen resolution over the web Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2014-08-04 15:20 +0300

csiph-web