473,382 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

IE6/7+Vista check


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
8 3143
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
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
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
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: salad | last post by:
Due to an earlier posting I read in this newsgroup regarding Office 2007 beta, I downloaded it. After I DL'd it, I got an invitation from MS to get WinVista. I am now wondering if, since both...
1
by: fredfrog22 | last post by:
The following is an extract from a C# console application that creates a Virtual Directory on IIS 5 or 6. This code works on XP, Windows 2003 Server, Windows 2000. It does not work on Windows...
56
by: Squishy | last post by:
I tried installing my VS2005 Pro on Vista Ultimate 32 bit RTM today and got errors stating that VS2005 was not compatible with Vista. Microsoft......please pull your finger out of my ass and tell...
7
by: JL | last post by:
Hello, I've a strange problem with Windows Vista, running an ASP page on local machine (http://localhost/test.asp), the page does not give me any error but the asp code is not executed (simple...
11
by: Don | last post by:
QUESTIONS: 1. Has anyone figured out how to successfully install the Office 97 Pro Service Release 2 patch in Vista? 2. Has anyone successfully installed an Office 97 Pro CD (SR2 version) in...
4
by: Viviana Vc | last post by:
Hi all, I've read the WindowsVistaUACDevReqs.doc documentation and I have done different small tests on Vista to understand the bahaviour and now I have a few questions. 1) If I create a...
6
by: John Kotuby | last post by:
Hi all... Well my earlier post aboout not being able to access http://localhost has been resolved. I am still having problems testing my Web site project. First, thanks to Juan Libre I edited...
10
by: hugh welford | last post by:
Hi Have just installed IIS7 on Vista and am trying to access a .mdb file through ASP. Getting server error. I think the problem is in the file permission. Under XP Pro/IIS6 is used to have to...
0
by: Ed | last post by:
I want to know when the screensaver has kicked in on my monitor so that I can turn off the desk light in my office. Under XP it has worked great. I use the following to check if screensaver is...
10
by: nik | last post by:
Hi, I've compiled my application on my vista machine, and it won't run at all on my xp machine. In the windows error report I get Exception code; 0xe0434f4d. I searched for that exception, but...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.