473,809 Members | 2,695 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3167
Marooned wrote on 17 nov 2007 in comp.lang.javas cript:
>
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.javas cript:
>In comp.lang.javas cript message
<Xn*********** *********@194.1 09.133.242, Sat, 17 Nov 2007 11:24:03,
Evertjan. <ex************ **@interxnl.net posted:
>>>Marooned wrote on 17 nov 2007 in comp.lang.javas cript:

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.javas cript:
>>In comp.lang.javas cript message
<Xn********** **********@194. 109.133.242, Sat, 17 Nov 2007 11:24:03,
Evertjan. <ex************ **@interxnl.net posted:
Marooned wrote on 17 nov 2007 in comp.lang.javas cript:
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.userA gent are, now don't we?

--
Randy
Chance Favors The Prepared Mind
comp.lang.javas cript 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.javas cript:

In comp.lang.javas cript message
<Xn********* ***********@194 .109.133.242, Sat, 17 Nov 2007 11:24:03,
Evertjan. <ex************ **@interxnl.net posted:
Marooned wrote on 17 nov 2007 in comp.lang.javas cript:
>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.userA gent 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.userA gent are, now don't we?
AFAIK no one in this thread suggested so far to use navigator.appNa me
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.user Agent are, now don't we?

AFAIK no one in this thread suggested so far to use navigator.appNa me
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.htm l">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.javas cript 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.javas cript 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
2693
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 are betas, it is best to buy a new computer? My current computer setup is a Pentium 4, 1 gig memory, 2.66 ghz, 60-80 gig disk drive. MS's requirements for a WinVista computer is A modern processor (800mz)
1
3081
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 Vista Release Candidate 1 (IIS 7). The below line pcProps.Value = strPath;
56
3647
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 me this is a joke. It must be a joke....because I also have read that VS2002 and VS2003 will not be supported on Vista. This clearly violates Microsoft's own terms of support for these products.
7
8102
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 code : <% response.write("hello") %), it show me a blank page, I think I've put all the setttings correctly, but maybe I must do something obvious to fix that. Anyone can help me ??
11
20231
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 Vista? DETAILS: My setup: Dell Inspiron notebook with Vista Business edition My CD: Office 97 Professional (Service Release 1) Upgrade
4
2321
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 dummy console application that creates a file in Program Files directory, this one will succeed and will create the file b/c of the virtualization. But, if I do the following call in a console window (a.exe contains just
6
1972
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 my HOSTS file and can access localhost. However, what I found in the HOSTS file was not what I expected. Juan mentioned that the following line might be missing. 127.0.0.1 localhost
10
3094
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 set the .mdb file security via windows explorer to give IUSR_machinename full permissions on this file for anonymous web access. Cant seem to do this with Vista explorer - says object cannot be found.
0
1534
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 running: '' Check if Screen Saver is Running i = WinApi.SystemParametersInfo(114, 0, SS, 0) 'SPI_GETSCREENSAVERRUNNING
10
1819
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 didn't see anything related to my problem The xp machine does have vb6 installed on it, could that be an issue? What reasons and solutions for this problem?
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9602
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10383
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7661
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6881
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5550
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4332
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3861
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.