473,387 Members | 1,596 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,387 software developers and data experts.

Valid Navigator.AppName values

ima
Where can I find a list of valid names for Navigator.AppName?

Sep 1 '05 #1
13 11156
ima said the following on 9/1/2005 5:56 PM:
Where can I find a list of valid names for Navigator.AppName?


You are not going to find a complete list of potential names that can
appear in navigator.appName (Case Matters).

My IE6, with this snippet:

alert(navigator.appName)

gives me this:

My Damn Browser

And I doubt you are going to find that in any list of potential "valid
names" for navigator.appName.
And with the situation on the web of appName spoofing, that list can't
be created unless you create a list of all potential combinations of
alphanumeric characters up to, oh, say 50 characters. Which puts that
list at approximately 1.453665622146772e+81 possible entries.

Why are you after the appName though?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Sep 1 '05 #2
ima schrieb:
Where can I find a list of valid names for Navigator.AppName?


Well, I know these three:

* Netscape
* Opera
* Microsoft Internet Explorer

But what these strings do say about the used browser? Nothing at all. If there's
"Microsoft Internet Explorer" as Navigator.AppName - well then it can be any
browser, maybe really an IE, maybe a firefox, maybe an opera, maybe something
else. Netscape? Can be allmost any browser and opera either - and the same for
every other name too. Navigator.AppName is just a string without any usefull
information in it.

If you intend to detect the used browser, you have to check for the differences
in JS-Implementation.
Sep 1 '05 #3
Lee
ima said:

Where can I find a list of valid names for Navigator.AppName?

You can't.
That's like asking for a list of valid user names.

Sep 1 '05 #4
ima wrote :
Where can I find a list of valid names for Navigator.AppName?


Using Web Standards in Your Web Pages
Developing Cross Browser/Cross Platform Pages:
Browser identification approach (aka "browser sniffing"): not best, not
reliable approach

"major problem with this approach is that the browser identity can be
'spoofed' because, in many modern browsers, the navigator.appVersion
(and navigator.appName) and navigator.userAgent string properties are
user configurable strings.
A user or browser distributor can put what they want in the
navigator.userAgent string"

http://www.mozilla.org/docs/web-deve...evCrossBrowser

Instead use object/feature detection support for cross-browser code as
explained:

Using Object/Feature detection approach: best and overall most reliable
http://www.mozilla.org/docs/web-deve...jectFeatDetect

A Strategy That Works: Object/Feature Detecting by comp.lang.javascript
newsgroup FAQ notes
http://jibbering.com/faq/faq_notes/n...tect.html#bdFD

Browser detection - No; Object detection - Yes by Peter-Paul Koch
http://www.quirksmode.org/js/support.html

Gérard
--
remove blah to email me
Sep 2 '05 #5
Martin Kurz said the following on 9/1/2005 6:29 PM:
ima schrieb:
Where can I find a list of valid names for Navigator.AppName?

Well, I know these three:

* Netscape
* Opera
* Microsoft Internet Explorer

But what these strings do say about the used browser? Nothing at all. If there's
"Microsoft Internet Explorer" as Navigator.AppName - well then it can be any
browser, maybe really an IE, maybe a firefox, maybe an opera, maybe something
else. Netscape? Can be allmost any browser and opera either - and the same for
every other name too. Navigator.AppName is just a string without any usefull
information in it.

If you intend to detect the used browser, you have to check for the differences
in JS-Implementation.


That won't tell the "used browser", it will tell you what
objects/methods the browser supports, but not what the browser is.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Sep 2 '05 #6
"ima" <im*********@yahoo.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Where can I find a list of valid names for Navigator.AppName?


Try Googling for "user agent strings".
Sep 2 '05 #7
Danny@Kendal said the following on 9/2/2005 4:47 AM:
"ima" <im*********@yahoo.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Where can I find a list of valid names for Navigator.AppName?

Try Googling for "user agent strings".


That won't give you the strings that are contained in the appName, it
will give you discussions and possible string that are in the
navigator.userAgent string.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Sep 2 '05 #8
"Randy Webb" <Hi************@aol.com> wrote in message
news:dZ******************************@comcast.com. ..
Danny@Kendal said the following on 9/2/2005 4:47 AM:
"ima" <im*********@yahoo.com> wrote in message
news:11**********************@g43g2000cwa.googlegr oups.com...
Where can I find a list of valid names for Navigator.AppName?

Try Googling for "user agent strings".


That won't give you the strings that are contained in the appName, it will
give you discussions and possible string that are in the
navigator.userAgent string.


Doh! Maybe I should have Googled for navigator.appName first.
Sep 2 '05 #9
ima
OK... OK... Point taken. I'm not a professional and I've forgotten
the vast majority of javascript that I managed to learn about 10 years
ago. Now, it seems that I'm the most qualified of a small
organization to handle our web site. My intention to use
Navigator.AppName was simply to redirect newer browsers to a cleaner
set of pages (that use css) . I found a "free to use" copy and past
script to do that but I didn't know the Navigator.AppName values to
check for other than "Microsoft Internet Explorer" and "Netscape". I
could guess but I would never know if I guessed correctly or not.

If anyone here knows of another, more reliable script to redirect the
newer browsers to the css pages, I'd love to hear all about it.

Sep 2 '05 #10
ima said the following on 9/2/2005 11:57 AM:
OK... OK... Point taken. I'm not a professional and I've forgotten
the vast majority of javascript that I managed to learn about 10 years
ago. Now, it seems that I'm the most qualified of a small
organization to handle our web site. My intention to use
Navigator.AppName was simply to redirect newer browsers to a cleaner
set of pages (that use css) . I found a "free to use" copy and past
script to do that but I didn't know the Navigator.AppName values to
check for other than "Microsoft Internet Explorer" and "Netscape". I
could guess but I would never know if I guessed correctly or not.

If anyone here knows of another, more reliable script to redirect the
newer browsers to the css pages, I'd love to hear all about it.


You start by quoting what you are replying to.

Then, you go to comp.infosystems.www.authoring.stylesheets and ask about
making your CSS degrade in the absence of CSS support.

But, if the criteria is "CSS Support", then you test for just that, CSS
Support.

Question:

User has CSS disabled in IE6. What page do they get?

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Sep 2 '05 #11
ima wrote :
OK... OK... Point taken. I'm not a professional and I've forgotten
the vast majority of javascript that I managed to learn about 10 years
ago. Now, it seems that I'm the most qualified of a small
organization to handle our web site. My intention to use
Navigator.AppName was simply to redirect newer browsers to a cleaner
set of pages (that use css) .
Site branching is not what I would recommend. Site branching involves
considerably more time, efforts, energy, testing, finances, etc.. to
develop, maintain and is not what a very wide majority of professional
web developers do or would recommend. What they use mostly is what is
referred as graceful degradation of pages for user agents which do not
support well certain CSS properties or simply do not support CSS. Your
webpages should look reasonably (as best as they can with valid markup
code) well in older user agents or in user agents not supporting CSS
(like text browsers, screen readers). Graceful degradation and
accessibility guidelines, priorities underline the importance that
content should be accessible for any web-aware software and that
navigation (links) should be functional.

I found a "free to use" copy and past script to do that but I didn't know the Navigator.AppName values to
check for other than "Microsoft Internet Explorer" and "Netscape". I
could guess but I would never know if I guessed correctly or not.

If anyone here knows of another, more reliable script to redirect the
newer browsers to the css pages, I'd love to hear all about it.


ima, what I replied to you is among the best possible resources
available addressing your issue. I can not find anything better than
what I posted and I doubt anyone could.

CSS1 is widely supported; about 98% of all user agents on use on the web
support reasonably well more than 50% of CSS1 properties. With time,
these percentage increase. What's important for you is to start reading
good references and FAQ on web authoring. But there is a wide consensus
among web authors that
1- user agent string detection (aka browser sniffing) is bad,
unreliable, often wrong, a nightmare to update and maintain
2- object/feature detection is better, more reliable, etc..
I'm merely mentioning what is in the FAQ of this newsgroup:
A Strategy That Works: Object/Feature Detecting by comp.lang.javascript
newsgroup FAQ notes
http://jibbering.com/faq/faq_notes/n...tect.html#bdFD

Gérard
--
remove blah to email me
Sep 4 '05 #12
Randy Webb wrote :
Question:

User has CSS disabled in IE6. What page do they get?


Just curious. How can an user disable CSS? Is there a simple button or
setting that does that??
Thanks.

Gérard
--
remove blah to email me
Sep 4 '05 #13
Gérard Talbot said the following on 9/3/2005 8:02 PM:
Randy Webb wrote :
Question:

User has CSS disabled in IE6. What page do they get?

Just curious. How can an user disable CSS? Is there a simple button or
setting that does that??
Thanks.


Tools>Internet Options>Accessibility

Ignore colors specified on Web pages
Ignore font styles specified on Web pages
Ignore font sizes specified on Web pages

And you can go even further and "Format documents using my style sheet"
and write your own CSS file to format documents the way they suit you best.

And that is just in IE6. Most (if not all) modern browsers give the user
control over how a web page displays in a browser.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Sep 4 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Jake | last post by:
Hi all I am trying to read all the navigator object elements 1. Using the navigator.length returns undefined, cant use for loop; 2.Using and array of known elements like var a =...
13
by: anonymike | last post by:
Hello, I started working with the ObjectDataSource today. I have the select, and have been working on getting the update method to work. Here is the asp code for my Data source: ...
4
by: Keith Patrick | last post by:
I'm trying to parse some XML via IXPathNavigable, handling elements, text, and attributes with the same code but without having a switch (node.NodeType). However, if I look at a parent element in...
12
bartonc
by: bartonc | last post by:
For those of you who have never used the *listofargs and **dictofargs syntax, here is a look at the latter. By using **kwargs, a dictionary of any size is sent into the fuction as dict(a=1, b=2)....
2
by: Randy | last post by:
Hi, I'd like to add a new blank record to a form for the user to input data. What I am trying to do is exactly what the + on the binding navigator does, with some additional steps involved. So,...
2
AdrianH
by: AdrianH | last post by:
Hi, I'm not exactly new to javascript, I just haven't used it in a few years. (BTW, I'm Forum Leader for C++/C. Don't want to scare off newbies here making them think that we at TSDN doen't know...
7
by: GG | last post by:
Is there a way to use Y/N values instead of true/false values? Thanks *** Sent via Developersdex http://www.developersdex.com ***
12
by: Justn226 | last post by:
anyone have any idea why i am not getting any return values? it will return the words just not the numbers? HTML <HTML> <head> <title>Zellers Carpeting Cost Estimate</title> </head> ...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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,...
0
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...
0
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...
0
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...

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.