Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.misc > #13725 > unrolled thread
| Started by | helge <w4h@nurfuerspam.de> |
|---|---|
| First post | 2015-02-22 14:31 +0000 |
| Last post | 2015-02-23 10:33 +0000 |
| Articles | 19 — 8 participants |
Back to article view | Back to comp.os.linux.misc
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
| From | helge <w4h@nurfuerspam.de> |
|---|---|
| Date | 2015-02-22 14:31 +0000 |
| Subject | Calling browser's system-os |
| Message-ID | <mccp8d$9bf$1@news.albasani.net> |
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
[toc] | [next] | [standalone]
| From | Robert Heller <heller@deepsoft.com> |
|---|---|
| Date | 2015-02-22 08:49 -0600 |
| Message-ID | <YKWdnaHsPa74cXTJnZ2dnUU7-SGdnZ2d@giganews.com> |
| In reply to | #13725 |
At Sun, 22 Feb 2015 14:31:41 +0000 (UTC) helge <w4h@nurfuerspam.de> 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?
There are JavaScript hacks to do that. You should check in
comp.lang.java.javascript and/or comp.lang.javascript.
> Vy 73! Helge
--
Robert Heller -- 978-544-6933
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services
[toc] | [prev] | [next] | [standalone]
| From | Roland Latour <no-one@nowhere.com> |
|---|---|
| Date | 2015-02-22 09:38 -0600 |
| Message-ID | <PN6dnbc9N52ZZXTJnZ2dnUU7-ROdnZ2d@posted.cavenetllc> |
| In reply to | #13725 |
On Sun, 22 Feb 2015 14:31:41 +0000, 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 I'm not sure I understand the question. Is this what you wanted? firefox -new-tab gocomics.com Replace gocomics.com with the URL of your choice. It can take up to 2 URLs at a time. Any more than that and you get a new window instead. But you can use multiple commands for that.
[toc] | [prev] | [next] | [standalone]
| From | Michael Black <et472@ncf.ca> |
|---|---|
| Date | 2015-02-22 11:06 -0500 |
| Message-ID | <alpine.LNX.2.02.1502221106080.9034@darkstar.example.org> |
| In reply to | #13725 |
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. Michael
[toc] | [prev] | [next] | [standalone]
| From | Robert Heller <heller@deepsoft.com> |
|---|---|
| Date | 2015-02-22 10:21 -0600 |
| Message-ID | <uOidnbFtqZaMn3fJnZ2dnUU7-KGdnZ2d@giganews.com> |
| In reply to | #13728 |
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.
>
> Michael
>
>
--
Robert Heller -- 978-544-6933
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2015-02-22 18:52 +0000 |
| Message-ID | <mcd8hk$92o$2@news.albasani.net> |
| In reply to | #13729 |
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???? >> >> Michael >> >> > -- Everything you read in newspapers is absolutely true, except for the rare story of which you happen to have first-hand knowledge. – Erwin Knoll
[toc] | [prev] | [next] | [standalone]
| From | Robert Heller <heller@deepsoft.com> |
|---|---|
| Date | 2015-02-22 16:43 -0600 |
| Message-ID | <yMCdnV91zMnjxnfJnZ2dnUU7-eudnZ2d@giganews.com> |
| In reply to | #13732 |
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.)
>
> >>
> >> Michael
> >>
> >>
> >
>
>
--
Robert Heller -- 978-544-6933
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2015-02-22 22:59 +0000 |
| Message-ID | <mcdn0q$3l2$2@news.albasani.net> |
| In reply to | #13735 |
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. >> >>>> >>>> Michael >>>> >>>> >>> >> >> > -- Everything you read in newspapers is absolutely true, except for the rare story of which you happen to have first-hand knowledge. – Erwin Knoll
[toc] | [prev] | [next] | [standalone]
| From | Robert Heller <heller@deepsoft.com> |
|---|---|
| Date | 2015-02-22 19:23 -0600 |
| Message-ID | <E82dna293-uxHHfJnZ2dnUU7-LmdnZ2d@giganews.com> |
| In reply to | #13737 |
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>
>
> >>
> >>>>
> >>>> Michael
> >>>>
> >>>>
> >>>
> >>
> >>
> >
>
>
--
Robert Heller -- 978-544-6933
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2015-02-23 07:31 +0000 |
| Message-ID | <mcekvm$o5p$1@news.albasani.net> |
| In reply to | #13738 |
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.
[toc] | [prev] | [next] | [standalone]
| From | Robert Heller <heller@deepsoft.com> |
|---|---|
| Date | 2015-02-23 07:10 -0600 |
| Message-ID | <yKKdnUt6s9BQu3bJnZ2dnUU7-IGdnZ2d@giganews.com> |
| In reply to | #13739 |
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'.
>
>
>
--
Robert Heller -- 978-544-6933
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2015-02-23 13:16 +0000 |
| Message-ID | <mcf98b$sfl$1@news.albasani.net> |
| In reply to | #13741 |
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
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2015-02-22 18:51 +0000 |
| Message-ID | <mcd8fr$92o$1@news.albasani.net> |
| In reply to | #13728 |
On 22/02/15 16:06, Michael Black 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. > you need server side php etc. > Michael > -- Everything you read in newspapers is absolutely true, except for the rare story of which you happen to have first-hand knowledge. – Erwin Knoll
[toc] | [prev] | [next] | [standalone]
| From | Robert Heller <heller@deepsoft.com> |
|---|---|
| Date | 2015-02-22 16:43 -0600 |
| Message-ID | <8PudnQtrT5XjxnfJnZ2dnUU7-QmdnZ2d@giganews.com> |
| In reply to | #13731 |
At Sun, 22 Feb 2015 18:51:38 +0000 The Natural Philosopher <tnp@invalid.invalid> wrote:
>
> On 22/02/15 16:06, Michael Black 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.
> >
>
> you need server side php etc.
Why?
>
> > Michael
> >
>
>
--
Robert Heller -- 978-544-6933
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
heller@deepsoft.com -- Webhosting Services
[toc] | [prev] | [next] | [standalone]
| From | The Natural Philosopher <tnp@invalid.invalid> |
|---|---|
| Date | 2015-02-22 22:58 +0000 |
| Message-ID | <mcdmut$3l2$1@news.albasani.net> |
| In reply to | #13734 |
On 22/02/15 22:43, Robert Heller wrote: > At Sun, 22 Feb 2015 18:51:38 +0000 The Natural Philosopher <tnp@invalid.invalid> wrote: > >> >> On 22/02/15 16:06, Michael Black 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. >>> >> >> you need server side php etc. > > Why? > Try thinking why a person would need to know what operating system they were running lo0cally, and conversely why a server would, remotely. . >> >>> Michael >>> >> >> > -- Everything you read in newspapers is absolutely true, except for the rare story of which you happen to have first-hand knowledge. – Erwin Knoll
[toc] | [prev] | [next] | [standalone]
| From | Tauno Voipio <tauno.voipio@notused.fi.invalid> |
|---|---|
| Date | 2015-02-22 20:13 +0200 |
| Message-ID | <mcd66t$shi$1@dont-email.me> |
| In reply to | #13725 |
On 22.2.15 16:31, 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
>
Would you please tell why? IMHO, a more useful piece of information
is the browser type and version.
Try this:
// This script sets OSName variable as follows:
// "Windows" for all versions of Windows
// "MacOS" for all versions of Macintosh OS
// "Linux" for all versions of Linux
// "UNIX" for all other UNIX flavors
// "Unknown OS" indicates failure to detect the OS
var OSName="Unknown OS";
if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows";
if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS";
if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX";
if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux";
document.write('Your OS: '+OSName);
--
-TV
[toc] | [prev] | [next] | [standalone]
| From | Bobbie Sellers <bliss-sf4ever@dslextreme.com> |
|---|---|
| Date | 2015-02-22 11:07 -0800 |
| Message-ID | <mcd9cs$a2j$1@dont-email.me> |
| In reply to | #13730 |
On 02/22/2015 10:13 AM, Tauno Voipio wrote:
> On 22.2.15 16:31, 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
>>
>
> Would you please tell why? IMHO, a more useful piece of information
> is the browser type and version.
>
> Try this:
>
> // This script sets OSName variable as follows:
> // "Windows" for all versions of Windows
> // "MacOS" for all versions of Macintosh OS
> // "Linux" for all versions of Linux
> // "UNIX" for all other UNIX flavors
> // "Unknown OS" indicates failure to detect the OS
>
> var OSName="Unknown OS";
> if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows";
> if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS";
> if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX";
> if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux";
>
> document.write('Your OS: '+OSName);
>
Back in ancient days like 15 years ago web-browsing on the Amiga
with AWeb the OS and the browser could not be detected by the sites
or even by the testing sites. That was fine with me. But even then
the AWeb browser could spoof Windows if I cared to configure a setting
that way. Those days I was thrilled to inherit a 28.8 kb modem and
thought the millennium had arrived when I got a 56 kb modem.
bliss
bliss
bliss
[toc] | [prev] | [next] | [standalone]
| From | Charlie Gibbs <cgibbs@kltpzyxm.invalid> |
|---|---|
| Date | 2015-02-23 20:51 +0000 |
| Message-ID | <mcg3td52ha7@news6.newsguy.com> |
| In reply to | #13733 |
On 2015-02-22, Bobbie Sellers <bliss-sf4ever@dslextreme.com> wrote: > Back in ancient days like 15 years ago web-browsing on the Amiga > with AWeb the OS and the browser could not be detected by the sites > or even by the testing sites. That was fine with me. But even then > the AWeb browser could spoof Windows if I cared to configure a setting > that way. And that's a Good Thing. I've had enough of web sites that say, "You're not running Windows. Back of the bus, boy!" -- /~\ cgibbs@kltpzyxm.invalid (Charlie Gibbs) \ / I'm really at ac.dekanfrus if you read it the right way. X Top-posted messages will probably be ignored. See RFC1855. / \ HTML will DEFINITELY be ignored. Join the ASCII ribbon campaign!
[toc] | [prev] | [next] | [standalone]
| From | helge <w4h@nurfuerspam.de> |
|---|---|
| Date | 2015-02-23 10:33 +0000 |
| Message-ID | <mcevle$9qe$1@news.albasani.net> |
| In reply to | #13730 |
> On 22.2.15 16:31, 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
>>
>>
> Would you please tell why? IMHO, a more useful piece of information is
> the browser type and version.
Well, check my homepage 'dj1wm.darc.de'.
With Win(7) and IE a mdidifile will be played. That is what I intend.
But using linux and firefox as me (newbie) only a popup shows and asks to
install VLC-player. So what?
Helge
>
> Try this:
>
> // This script sets OSName variable as follows:
> // "Windows" for all versions of Windows // "MacOS" for all
> versions of Macintosh OS // "Linux" for all versions of Linux //
> "UNIX" for all other UNIX flavors // "Unknown OS" indicates
> failure to detect the OS
>
> var OSName="Unknown OS";
> if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows";
> if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS";
> if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX";
> if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux";
>
> document.write('Your OS: '+OSName);
[toc] | [prev] | [standalone]
Back to top | Article view | comp.os.linux.misc
csiph-web