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


Groups > comp.os.linux.misc > #13742

Re: Calling browser's system-os

From The Natural Philosopher <tnp@invalid.invalid>
Newsgroups comp.os.linux.misc
Subject Re: Calling browser's system-os
Date 2015-02-23 13:16 +0000
Organization albasani.net
Message-ID <mcf98b$sfl$1@news.albasani.net> (permalink)
References (4 earlier) <yMCdnV91zMnjxnfJnZ2dnUU7-eudnZ2d@giganews.com> <mcdn0q$3l2$2@news.albasani.net> <E82dna293-uxHHfJnZ2dnUU7-LmdnZ2d@giganews.com> <mcekvm$o5p$1@news.albasani.net> <yKKdnUt6s9BQu3bJnZ2dnUU7-IGdnZ2d@giganews.com>

Show all headers | View raw


On 23/02/15 13:10, Robert Heller wrote:
> At Mon, 23 Feb 2015 07:31:00 +0000 The Natural Philosopher <tnp@invalid.invalid> wrote:
>
>>
>> On 23/02/15 01:23, Robert Heller wrote:
>>> At Sun, 22 Feb 2015 22:59:37 +0000 The Natural Philosopher <tnp@invalid.invalid> wrote:
>>>
>>>>
>>>> On 22/02/15 22:43, Robert Heller wrote:
>>>>> At Sun, 22 Feb 2015 18:52:36 +0000 The Natural Philosopher <tnp@invalid.invalid> wrote:
>>>>>
>>>>>>
>>>>>> On 22/02/15 16:21, Robert Heller wrote:
>>>>>>> At Sun, 22 Feb 2015 11:06:29 -0500 Michael Black <et472@ncf.ca> wrote:
>>>>>>>
>>>>>>>>
>>>>>>>> On Sun, 22 Feb 2015, helge wrote:
>>>>>>>>
>>>>>>>>> Hi NG!
>>>>>>>>> Ubuntu 12.04 LTS
>>>>>>>>> How to check in an index.html if the calling browser's system-os is linux
>>>>>>>>> or one of the many windows species?
>>>>>>>>> Vy 73! Helge
>>>>>>>>> --
>>>>>>>>> http://dj1wm.darc.de
>>>>>>>>>
>>>>>>>> Check the user agent header.  Except I don't know how that's done with
>>>>>>>> html.
>>>>>>>
>>>>>>> Its not actually.  Its done with JavaScript (which can be embeded in the HTML
>>>>>>> with the <script> tag).  The OP should check in the JavaScript newsgroups or
>>>>>>> on the various and many forums relating to JavaScript and AJAX and Web
>>>>>>> Programming in general.
>>>>>>>
>>>>>>
>>>>>> ??? how can client side javascript let the server know what OS is
>>>>>> running????
>>>>>
>>>>> The OP didn't ask about that. The client side javascript can make all of the
>>>>> 'decisions' needed and then perform whatever AJAX calls needed (if any),
>>>>> depending one what the OP wants to do. There are any number of things one can
>>>>> do completely with javascript, such as encode a button or form URL or
>>>>> something stupid like setting the background color based on what OS the
>>>>> browser is running, all without specificly phoning home. IF the OP wants to
>>>>> let the server know, that can be done with an AJAX call. (Actually, the
>>>>> *server* should already know, simply by looking at the User-Agent header the
>>>>> browser is sending, assuming that the user has not installed a plugin to alter
>>>>> the User-Agent header that is sent.)
>>>>>
>>>> Assuming he's not just running passive web pages (index.html) that can't
>>>> make decisions based on user agents.
>>>
>>> Actually, it can.  Consider index.html containing:
>>>
>>> <html><head><script type="text/javascript">function foo() {...}</script></head>
>>> <body onload="foo();">...</body></html>
>>>
>>
>> Javascript is not a 'passive web page' point 1.
>
> The OP never said 'passive web page', just 'index.html'.
>
But I did, and that's what was replied to.


>>
>>
>>
>


-- 
Everything you read in newspapers is absolutely true, except for the 
rare story of which you happen to have first-hand knowledge. – Erwin Knoll

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Calling browser's system-os helge <w4h@nurfuerspam.de> - 2015-02-22 14:31 +0000
  Re: Calling browser's system-os Robert Heller <heller@deepsoft.com> - 2015-02-22 08:49 -0600
  Re: Calling browser's system-os Roland Latour <no-one@nowhere.com> - 2015-02-22 09:38 -0600
  Re: Calling browser's system-os Michael Black <et472@ncf.ca> - 2015-02-22 11:06 -0500
    Re: Calling browser's system-os Robert Heller <heller@deepsoft.com> - 2015-02-22 10:21 -0600
      Re: Calling browser's system-os The Natural Philosopher <tnp@invalid.invalid> - 2015-02-22 18:52 +0000
        Re: Calling browser's system-os Robert Heller <heller@deepsoft.com> - 2015-02-22 16:43 -0600
          Re: Calling browser's system-os The Natural Philosopher <tnp@invalid.invalid> - 2015-02-22 22:59 +0000
            Re: Calling browser's system-os Robert Heller <heller@deepsoft.com> - 2015-02-22 19:23 -0600
              Re: Calling browser's system-os The Natural Philosopher <tnp@invalid.invalid> - 2015-02-23 07:31 +0000
                Re: Calling browser's system-os Robert Heller <heller@deepsoft.com> - 2015-02-23 07:10 -0600
                Re: Calling browser's system-os The Natural Philosopher <tnp@invalid.invalid> - 2015-02-23 13:16 +0000
    Re: Calling browser's system-os The Natural Philosopher <tnp@invalid.invalid> - 2015-02-22 18:51 +0000
      Re: Calling browser's system-os Robert Heller <heller@deepsoft.com> - 2015-02-22 16:43 -0600
        Re: Calling browser's system-os The Natural Philosopher <tnp@invalid.invalid> - 2015-02-22 22:58 +0000
  Re: Calling browser's system-os Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2015-02-22 20:13 +0200
    Re: Calling browser's system-os Bobbie Sellers <bliss-sf4ever@dslextreme.com> - 2015-02-22 11:07 -0800
      Re: Calling browser's system-os Charlie Gibbs <cgibbs@kltpzyxm.invalid> - 2015-02-23 20:51 +0000
    Re: Calling browser's system-os helge <w4h@nurfuerspam.de> - 2015-02-23 10:33 +0000

csiph-web