By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,517 Members | 1,172 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,517 IT Pros & Developers. It's quick & easy.

IE6/7+Vista check

P: n/a

Hi (a total newbie here), I run a small personal website and I need to
check if my client is reaching my site with:

- IE6 || IE7
AND
- Windows Vista

How can I do? The script should work in Firefox too...

Thanks!!
Nov 17 '07 #1
Share this Question
Share on Google+
8 Replies


P: n/a
Marooned wrote on 17 nov 2007 in comp.lang.javascript:
>
Hi (a total newbie here), I run a small personal website and I need to
check if my client is reaching my site with:

- IE6 || IE7
AND
- Windows Vista
Perhaps you want that, I am sure you do not need that.
How can I do? The script should work in Firefox too...
The client can send you any uer agentstring he wants,
not necassarily showwing the real situation

<http://www.quirksmode.org/js/detect.html>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Nov 17 '07 #2

P: n/a
On Mon, 19 Nov 2007 22:29:31 +0000, Evertjan. wrote:
Dr J R Stockton wrote on 18 nov 2007 in comp.lang.javascript:
>In comp.lang.javascript message
<Xn********************@194.109.133.242, Sat, 17 Nov 2007 11:24:03,
Evertjan. <ex**************@interxnl.netposted:
>>>Marooned wrote on 17 nov 2007 in comp.lang.javascript:

Hi (a total newbie here), I run a small personal website and I need
to check if my client is reaching my site with:

- IE6 || IE7
AND
- Windows Vista

Perhaps you want that, I am sure you do not need that.

But the OP might be wanting to make a page with different content for
different combinations of OS & browser

I uphold that the silly notion in present-day-usenet-newbee-English to
say "need" when the newbee wants something detrimental to a correct
answer when this is not addressed first/too.
You shouldn't claim to have a "correct" answer if you've completely
ignored what the poster asked for... you have no idea, what so ever, what
the OP wants or needs... perhaps he wants to collect statistics of some
sort.

--
I told you this was going to happen.

Nov 19 '07 #3

P: n/a
Ivan Marsh said the following on 11/19/2007 5:49 PM:
On Mon, 19 Nov 2007 22:29:31 +0000, Evertjan. wrote:
>Dr J R Stockton wrote on 18 nov 2007 in comp.lang.javascript:
>>In comp.lang.javascript message
<Xn********************@194.109.133.242, Sat, 17 Nov 2007 11:24:03,
Evertjan. <ex**************@interxnl.netposted:
Marooned wrote on 17 nov 2007 in comp.lang.javascript:
Hi (a total newbie here), I run a small personal website and I need
to check if my client is reaching my site with:
>
- IE6 || IE7
AND
- Windows Vista
Perhaps you want that, I am sure you do not need that.
But the OP might be wanting to make a page with different content for
different combinations of OS & browser
I uphold that the silly notion in present-day-usenet-newbee-English to
say "need" when the newbee wants something detrimental to a correct
answer when this is not addressed first/too.

You shouldn't claim to have a "correct" answer if you've completely
ignored what the poster asked for... you have no idea, what so ever, what
the OP wants or needs... perhaps he wants to collect statistics of some
sort.
And we all know how "reliable" web statistics based on
navigator.userAgent are, now don't we?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 19 '07 #4

P: n/a
On Mon, 19 Nov 2007 17:51:59 -0500, Randy Webb wrote:
Ivan Marsh said the following on 11/19/2007 5:49 PM:
>On Mon, 19 Nov 2007 22:29:31 +0000, Evertjan. wrote:
>>Dr J R Stockton wrote on 18 nov 2007 in comp.lang.javascript:

In comp.lang.javascript message
<Xn********************@194.109.133.242, Sat, 17 Nov 2007 11:24:03,
Evertjan. <ex**************@interxnl.netposted:
Marooned wrote on 17 nov 2007 in comp.lang.javascript:
>Hi (a total newbie here), I run a small personal website and I need
>to check if my client is reaching my site with:
>>
>- IE6 || IE7
>AND
>- Windows Vista
Perhaps you want that, I am sure you do not need that.
But the OP might be wanting to make a page with different content for
different combinations of OS & browser
I uphold that the silly notion in present-day-usenet-newbee-English to
say "need" when the newbee wants something detrimental to a correct
answer when this is not addressed first/too.

You shouldn't claim to have a "correct" answer if you've completely
ignored what the poster asked for... you have no idea, what so ever,
what the OP wants or needs... perhaps he wants to collect statistics of
some sort.

And we all know how "reliable" web statistics based on
navigator.userAgent are, now don't we?
I made no claim of reliability... simply another possibility of what the
OP might have wanted.

--
I told you this was going to happen.

Nov 19 '07 #5

P: n/a
VK
On Nov 20, 1:51 am, Randy Webb <HikksNotAtH...@aol.comwrote:
And we all know how "reliable" web statistics based on
navigator.userAgent are, now don't we?
AFAIK no one in this thread suggested so far to use navigator.appName
for environment detection, so nothing to oppose to ;-)

If there is really a need for UA-specific content on load time, then
conditional content-revealing/content-hiding comments are absolutely
reliable and cannot be cheated (unless someone hacks the source code
of a particular browser).
Nov 20 '07 #6

P: n/a
VK said the following on 11/20/2007 4:08 AM:
On Nov 20, 1:51 am, Randy Webb <HikksNotAtH...@aol.comwrote:
>And we all know how "reliable" web statistics based on
navigator.userAgent are, now don't we?

AFAIK no one in this thread suggested so far to use navigator.appName
for environment detection, so nothing to oppose to ;-)
You should have quoted at least the previous line to where you snipped.
My reply didn't have as much to do with the navigator object as it did
with the idea of doing any kind of UA/OS detection using JS and how
"reliable" it is (It isn't).
If there is really a need for UA-specific content on load time, then
conditional content-revealing/content-hiding comments are absolutely
reliable and cannot be cheated (unless someone hacks the source code
of a particular browser).
<a href="vista.html">Windows Vista Page</a>
<a href="xp.html">Windows XP Page</a>
<a href="me.html">Windows ME Page</a>

<g>

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 20 '07 #7

P: n/a
Jeremy J Starcher said the following on 11/23/2007 2:20 AM:

<snip>
If you are trying to collect stats about who is visiting your site: Not
worth it. As flawed as feature detection and more dangerous.
Did you mean browser detection or do you really believe that feature
detection is flawed?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Nov 23 '07 #8

P: n/a
On Fri, 23 Nov 2007 03:26:33 -0500, Randy Webb wrote:
Jeremy J Starcher said the following on 11/23/2007 2:20 AM:

<snip>
>If you are trying to collect stats about who is visiting your site: Not
worth it. As flawed as feature detection and more dangerous.

Did you mean browser detection or do you really believe that feature
detection is flawed?
Ah! What I mean and what I say are different things. Should have
proofread that better.

"As flawed as browser detection and more dangerous" -- because you will
tend to make your website only work for the browsers that people use to
see your site and go into a downward spiral.

Sorry 'bout that.
Nov 25 '07 #9

This discussion thread is closed

Replies have been disabled for this discussion.