Forum Moderators: open

Message Too Old, No Replies

Detecting website visitor info

         

hermes

1:38 pm on Dec 11, 2004 (gmt 0)

10+ Year Member



Please refer to this Microsoft development website - it is a guide to the Configurable Language and Cultural Settings of Windows operating systems.

[microsoft.com...]

I want to know how I can access the Configurable Language and Cultural Settings of my website visitors using javascript. Help.

For instance, I would like to read their Location or Geographic ID using javascript.

Location or Geographic ID
Geographic ID - Defines the country or location where the user resides.

[microsoft.com...]

"This variable is available in Windows XP (and was also available in Microsoft Windows Millennium Edition [Windows Me] though not in Windows 2000) to define the country or location where the user lives. Each user can change this variable on the fly by selecting changes from the Regional Options tab of the Regional And Language Options property sheet. Any changes made are also applied on the fly. By selecting a particular location, the user has set a variable that a Web service(such as one that deals with weather) can check, thus allowing the Web service to deliver information and services specific to the region or country the user has selected."

They do seem to have some code on the website for detecting location. But I am not sure how much this can be related to Javascript. I think it is .NET code.

[msdn.microsoft.com...]

I realise that there are other methods to find a website visitors location (for instance IP to geography lookup). But I want to find out how to do it this way - using javascript if possible.

Would be really great if someone could help out. Many thanks.

hermes

3:40 pm on Dec 13, 2004 (gmt 0)

10+ Year Member



Anyone find this thread interesting? Am at a real loss how to move forward with this. Would really, really appreciate some help.

hermes

5:53 pm on Dec 14, 2004 (gmt 0)

10+ Year Member



Would be so, so grateful.

jbot

11:54 am on Dec 15, 2004 (gmt 0)

10+ Year Member



it can't be done using JS. you could do it via a serverside language tho, such as PHP. it would involve getting the user's IP address and using some geo-location software to pinpoint them. you should be able to detect the language of their browser that way, too, and thereby alter the markup change the presentation to reflect any cultural differences between them.