peterbf wrote:
I have a homepage where I instanciate a .Net 2.0 component in an object
tag, but before instanciating the component, I would like to to check
first if the machine has the .Net 2.0 framework installed.
IE/Win gets it user agent string changed if the .NET framework is
installed e.g. here with .NET 1.0 and 1.1 installed
navigator.userAgent
in IE gives you something alike
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.xyz;
..NET CLR 1.1.xyz)
so you could try to parse that userAgent string for .NET CLR and the
version numbers.
But I don't know how easy it is that someone reconfigures its IE not to
expose the installed .NET version in the user agent string, so no idea
whether it is reliable.
--
Martin Honnen
http://JavaScript.FAQTs.com/