473,850 Members | 2,066 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Valid Navigator.AppNa me values

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

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


You are not going to find a complete list of potential names that can
appear in navigator.appNa me (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.appNa me.
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.4536656221467 72e+81 possible entries.

Why are you after the appName though?

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


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.AppNa me - 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.AppNa me 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.AppNa me?

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.AppNa me?


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.appVe rsion
(and navigator.appNa me) and navigator.userA gent string properties are
user configurable strings.
A user or browser distributor can put what they want in the
navigator.userA gent 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.javas cript
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.AppNa me?

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.AppNa me - 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.AppNa me 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.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Sep 2 '05 #6
"ima" <im*********@ya hoo.com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. .
Where can I find a list of valid names for Navigator.AppNa me?


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

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.userA gent string.

--
Randy
comp.lang.javas cript 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*********@ya hoo.com> wrote in message
news:11******** **************@ g43g2000cwa.goo glegroups.com.. .
Where can I find a list of valid names for Navigator.AppNa me?

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.userA gent string.


Doh! Maybe I should have Googled for navigator.appNa me 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.AppNa me 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.AppNa me 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

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

Similar topics

13
1822
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 = Array("appCodeName","appName","appVersion"); I seem to miss something to get it combined like navigator.a
13
8234
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: <asp:ObjectDataSource ID="dsourceApps" runat="server" SelectMethod="getAllApplications" TypeName="AppMgr.AppManager" UpdateMethod="updateAppHdr" ConflictDetection="CompareAllValues"
4
4323
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 something like this: <MyParent> <MyChild>Text1</MyChild> <MyChild>Text2</MyChild> </MyParent> and try myParent.Value, while I would expect the return value to be null, I
12
2660
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). Inside the function, it's just a dictionary named kwargs (or whaterver, but this is conventional). The truly amazing thing to me is that I am able to write to the Windows registry with so little interface! """Encapuslate a Default Values Object and...
2
3304
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, my question can be asked from two directions: 1. Is the binding navigator code visible somewhere? If it is, I'll just copy it from there into my procedure. 2. What is the code that the binding navigator uses to add this blank row without...
2
1523
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 what we are talking about. :D) I understand the DOM to the point that I thought I did, but I've come across a slight problem. A DOM object that is used to reference a class doesn't have its members populated when the class style has set them. When...
7
4839
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
1837
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> <script>
0
9741
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
11011
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10666
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
10724
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,...
0
10351
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9503
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7071
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
5735
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...
3
3178
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.