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


Groups > comp.lang.javascript > #24186

Re: Detection of devices using JavaScript

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Detection of devices using JavaScript
Date Fri, 16 May 2014 15:46:19 +0200
Organization PointedEars Software (PES)
Lines 25
Message-ID <2325020.szrhtIhYvG@PointedEars.de> (permalink)
References <be99109d-a09b-4374-bd4d-68c746d3405d@googlegroups.com> <ll2ptp$bep$1@dont-email.me> <2757558.IxYUr6dfcW@PointedEars.de> <5374f76d$0$6664$9b4e6d93@newsspool3.arcor-online.net> <99395878-fe47-4f8d-986e-b10a4e9ae636@googlegroups.com> <5375f07e$0$6699$9b4e6d93@newsspool2.arcor-online.net> <87lhu150hg.fsf@development.richardriley.net>
Reply-To Thomas 'PointedEars' Lahn <cljs@PointedEars.de>
Mime-Version 1.0
Content-Type text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding 7Bit
X-Trace solani.org 1400247981 15744 eJwNysEBwCAIA8CVkJBgxwEt+4/Q3vsILZ0MUcHh2FIVNRf2GkggfVfzejzp/zjTkDZT3cH6AAhgEG8= (16 May 2014 13:46:21 GMT)
X-Complaints-To abuse@news.solani.org
NNTP-Posting-Date Fri, 16 May 2014 13:46:21 +0000 (UTC)
User-Agent KNode/4.12.4
X-User-ID eJwFwYkBwCAIA8CVVJII45TH/UfoHU1bdSEKfHwYZMHu5AnvKA+L/o7S2nEeK3dqPca0xmuP0C2grBac/AFg1RWr
Face iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAGFBMVEXTxa4RFk5dUWANED8PFEfy7+MGBiW+n3ZNF/QuAAACaElEQVQ4jVXUwVOcMBQG8Dc7Rc4PUntdWV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JwFwYEBwDAEBMCVIniMU+T3H6F3rhBMGBzmdHKx8W5PfqN9/Yi0kVJHeyuv1Ut9DCo4hv4BLrwRmw==
Xref csiph.com comp.lang.javascript:24186

Show key headers only | View raw


Simon Lewis wrote:

> Christoph Michael Becker <cmbecker69@arcor.de> writes:
>> As Thomas has already hinted at, using the user agent string to detect
>> the browser/device is unreliable.  See
>> <http://pointedears.de/scripts/faq/cljs/#detectBrowser>; the article
>> doesn't deal with mobile devices, but the issues pointed out are
>> basically the same.  At least you should offer some way to get to the
>> download page for all users.
>>
>> However, it seems to be preferable to look for a more reliable solution
>> in the first place.  I don't know if there exists such a solution,
>> though.
> 
> No. Use the user agent. Why? because thats what people use when they
> *want* the full content or alternate content for a different device.

You have learned from the wrong people again.  You know, the same people 
that said augmenting host objects would be OK.

-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Detection of devices using JavaScript "Sithu.D" <zebra05@gmail.com> - 2014-05-15 02:32 -0700
  Re: Detection of devices using JavaScript Denis McMahon <denismfmcmahon@gmail.com> - 2014-05-15 16:27 +0000
    Re: Detection of devices using JavaScript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-15 18:40 +0200
      Re: Detection of devices using JavaScript Christoph Michael Becker <cmbecker69@arcor.de> - 2014-05-15 19:20 +0200
        Re: Detection of devices using JavaScript "Sithu.D" <zebra05@gmail.com> - 2014-05-15 23:56 -0700
          Re: Detection of devices using JavaScript Christoph Michael Becker <cmbecker69@arcor.de> - 2014-05-16 13:03 +0200
            Re: Detection of devices using JavaScript Simon Lewis <simonlewis2001@gmail.com> - 2014-05-16 15:14 +0200
              Re: Detection of devices using JavaScript Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2014-05-16 15:46 +0200
      Re: Detection of devices using JavaScript John Harris <niam@jghnorth.org.uk.invalid> - 2014-05-16 09:49 +0100

csiph-web