Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to figure out if a user is using a mac

Status
Not open for further replies.

fmrock

Programmer
Sep 5, 2006
510
US
Hey everyone,

I am building a project that uses an ActiveX to display tiff files right in the browser window. This will not work for mac users and was wondering what the best way to determine if a user is using a mac or pc?
 
Most browsers will honestly report themselves in their HTTP Request to your IIS Server.

The information passed along with the Request is available to your ASP via the Request.ServerVariables collection.

See here for more:

PS: It might be a better approach to limit the ActiveX capability to browsers that you know support it than to exclude Mac... because next you'll need to exclude someone's Blackberry device and then some guy will use FireFox on windows and so on... So a list of acceptable browsers may be shorter than the list of rejected ones.
 
Thanks sheco, I had already looked at the HTTP_USER_AGENT but didnt know if there was anything better.

The reason why i want to figure out if the user is a mac, is to find a new control that will possible work for a mac.

The project gives doctors the ability to view medical charts, and even though the portal system that they access this information though, does not support mac, some of the docs us a mac and I am required to come up with something for a mac.

Thanks for your help.

Do you have any ideas on how a mac user can view Tiffs in the broswer?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top