From: SAM on
nobody(a)nowhere.net a �crit :
> On Sat, 03 May 2008 11:49:26 +0200, SAM
> <stephanemoriaux.NoAdmin(a)wanadoo.fr.invalid> wrote:
>
(snip) something telling you only need to detect user's Win version
right ?
Mac users will have to do with it :-(
(I hate Windows and Windows hates me)

> This is not in the spec. Even more so, the spec calls for the
> interface _not_ to be user-customizable, and to be as close to the
> standard Windows interface as it can get. Don't you get the
> difference between programming for fun, and development of business
> app that involves things like spec, deadline, etc.?

Developing for business ? Really ? Why won't you realize a real *.exe ?

Found that :
<http://jsbrwsniff.sourceforge.net/index.html>

HTH

--
sm
From: Logos on
On May 2, 7:02 pm, "nob...(a)nowhere.net" <mygarbage2...(a)hotmail.com>
wrote:
> I need to pop up a modal JS-based dialog (for some reason can't use
> popup window, much less so showModalDialog()), and I'd like to imitate
> the system popup titlebar according to user's desktop settings
> (classic, XP, Vista). No big deal to make it work, but how do I know
> the style to display? Any chance to figure out these settings
> programmatically either on the client (preferrable), or possibly in
> asp.net from something like Request["ServerVariables"] (not the best
> thing but will work for this project). Would prefer cross-browser
> compatibility, but can use IE-specific solution (sorry, no client side
> activeX may be used, just plain JS/DOM/DHTML). Asking the user to
> manually select visual preferences is not an option.
>
> Thanks
>
> NNN

You are correct - it can't be done. Their is no way for a browser to
access those system settings. You can get things like screen size and
so forth, but that is all.

Tyler
From: SAM on
Logos a �crit :
> On May 2, 7:02 pm, "nob...(a)nowhere.net" <mygarbage2...(a)hotmail.com>
> wrote:
>> I need to pop up a modal JS-based dialog (for some reason can't use
>> popup window, much less so showModalDialog()), and I'd like to imitate
>> the system popup titlebar according to user's desktop settings
>> (classic, XP, Vista). No big deal to make it work, but how do I know
>> the style to display? Any chance to figure out these settings
>> programmatically either on the client (preferrable), or possibly in
>> asp.net from something like Request["ServerVariables"] (not the best
>> thing but will work for this project). Would prefer cross-browser
>> compatibility, but can use IE-specific solution (sorry, no client side
>> activeX may be used, just plain JS/DOM/DHTML). Asking the user to
>> manually select visual preferences is not an option.
>>
>> Thanks
>>
>> NNN
>
> You are correct - it can't be done. Their is no way for a browser to
> access those system settings. You can get things like screen size and
> so forth, but that is all.

in address bar :

javascript:w=window.open("");for(i in
navigator)w.document.write("<li>"+i+" = "+eval('navigator.'+i));

I obtain with my Mac :
Firefox :
appVersion = 5.0 (Macintosh; fr)
platform = MacIntel
oscpu = Intel Mac OS X
Safari :
appVersion = 5.0 (Macintosh; U; Intel Mac OS X; fr) ...etc
platform = MacIntel

I obtain with my Win XP and IE6 :
appMinorVersion = ;SP2;
cpuClass = x86
platform = Win32
opsProfile =
userProfile =
systemLanguage = fr
userLanguage = fr

Wouldn't all that be enough to detect the OS ?

--
sm
From: Gregor Kofler on
SAM meinte:

> Wouldn't all that be enough to detect the OS ?

Detecting the OS is easy (both on client and server side; not really
reliable). Anyway, the OP wants to know the UI design settings of the
OS. And that's impossible.

Gregor


--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur f�r den alpinen Raum
From: VK on
On May 3, 6:02 am, "nob...(a)nowhere.net" <mygarbage2...(a)hotmail.com>
wrote:
> I need to pop up a modal JS-based dialog (for some reason can't use
> popup window, much less so showModalDialog()), and I'd like to imitate
> the system popup titlebar according to user's desktop settings
> (classic, XP, Vista). No big deal to make it work, but how do I know
> the style to display? Any chance to figure out these settings
> programmatically either on the client (preferrable), or possibly in
> asp.net from something like Request["ServerVariables"] (not the best
> thing but will work for this project). Would prefer cross-browser
> compatibility, but can use IE-specific solution

CSS 2.x defines system color names besides explicit colors:
http://www.w3.org/TR/CSS21/ui.html#system-colors

It is marked as deprecated for CSS 3.x - but anyone ever implemented
it, it should be still here. I believe it worked for me for IE6 but I
never tested it intensively. You may try that.