On that link you provided it had these variables...
Code:
Request.ServerVariables("HTTP_UA_PIXELS") - a string detailing the screen resolution of the user agent.
Request.ServerVariables("HTTP_UA_COLOR") - a string with color information.
Request.ServerVariables("HTTP_UA_OS") - a string stating the operating system of the user agent.
Request.ServerVariables("HTTP_UA_CPU") - a string stating the processor type used by the user agent.
But they don't seem to work.
Does someone know how to get them to?
Thank you all for the great responses. Helped immensely. Here is my cheat sheet if anyone else is interested. As for the color/pixel thing I don't see those listed when looping through the server vars.
Code:
<table border="1" width="1024">
<%
For Each Item in Request.ServerVariables
Response.Write("<tr><td noWrap>" & Item & "</td><td>" & Request.ServerVariables(Item) & "</tr>")
Next
%>
</table>
Originally posted by ldiuf Hey WebMarkart, or anyone
On that link you provided it had these variables...
Code:
Request.ServerVariables("HTTP_UA_PIXELS") - a string detailing the screen resolution of the user agent.
Request.ServerVariables("HTTP_UA_COLOR") - a string with color information.
Request.ServerVariables("HTTP_UA_OS") - a string stating the operating system of the user agent.
Request.ServerVariables("HTTP_UA_CPU") - a string stating the processor type used by the user agent.
But they don't seem to work.
Does someone know how to get them to?
Originally posted by ldiuf Hey WebMarkart, or anyone
On that link you provided it had these variables...
Code:
Request.ServerVariables("HTTP_UA_PIXELS") - a string detailing the screen resolution of the user agent.
Request.ServerVariables("HTTP_UA_COLOR") - a string with color information.
Request.ServerVariables("HTTP_UA_OS") - a string stating the operating system of the user agent.
Request.ServerVariables("HTTP_UA_CPU") - a string stating the processor type used by the user agent.
But they don't seem to work.
Does someone know how to get them to?
Cheers,
Larry
The key here is the letters "UA" in the middle of that list, that's short for User Agent and means those items will only show when the User Agent (ie the browser) provides those items. Checking with both IE 6 and Mozilla 1.0 none of those fields show up so it's probably safe to say you can't count on those fields.
Originally posted by Morgoth Why would they exsist if IE6.0 (Microsoft made) wouldn't support it?
I know other browsers do, or might, but common!
From the look of things they may be something that someone only started to implement and got shot down or were implemented in an early version of IE but was subsequently dropped. I see those items documented in only 4 MS Knowledgebase articles all of which are very old (two are from 1997, they probably relate to IE 2.0!). I suspect those items fell into the category of "more than the server should know about the user" as privacy concerns have mounted since the potential privacy abuses on the web have grown more apparent.
That's all speculation of course, it would take someone with a lot more time and patience than I have to try to fathom the mind of a company like MS.
Originally posted by Roy Sinclair I suspect those items fell into the category of "more than the server should know about the user" as privacy concerns have mounted since the potential privacy abuses on the web have grown more apparent.
It could be because people could easily not allow people with a different OS then the webmaster allows. And other reasons for the others.
But all I would like to know is the amount of colour the user can see, and the size of his screen so I know If i should resize my graphics and tables or what not.
Erg. I can always do some of this in Javascript, but I don't really wanna mix languages. I don't have any Javascript of my site. I'm going for Style tags and ASP, and it's working fine.
less languages to learn means easier work for creating a site that looks nice and I understand. /