Accesing Windows Location from a browser

I need to access Location (where you can set the country you're living) data from Regional and Language Option within Windows XP Control Panel from a browser.
Can this be done?
huevodelataAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Sleepyhead_NOConnect With a Mentor Commented:
"The thing i need to do is: if a client choose a specified country in a pull-down combo, then change the Language of his browser properly, so the next time he enters the site he would be succefully redirected to the right site in the language of his country automatically, without asking him again. And i can't use cookies, sorry."

Is this on your site (1)? Or is this on computers you are administrating (2)?

1: You have to use a cookie to save/change the setting. Alternatively automatically redirect based on IP or browser language as frugle explains in his comment.

2: Tools -> Internet Options -> Languages.

You cannot get the value from the reginonal settings in windows without a client side active-x script.
0
 
ekrinerCommented:
If the computer is running web enabled terminal services, I guess you could do it from a browser by terminal serving into your PC and accessing the CP from a browser window.
0
 
venkateshwarrCommented:

I think it can also be done through the ipaddress...
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
venkateshwarrCommented:

Sorry I misread your questions...

But I dont think this can be done...
0
 
vicky_phadkeCommented:
i have noticed this once. when i type google.com and try to view page. it automatically redirects me to google.co.in (since i m in india). i dont know how. but it does.
0
 
frugleCommented:
The easy way (and most unreliable) is with JS and hope the user's browser userAgent stores the language, e.g. Mozilla/4.0 [en] (Win95; I)

You can find this with the following code:

<script language="JavaScript"><!--
var start = navigator.userAgent.indexOf('[');
if (start > -1) {
    var end = navigator.userAgent.indexOf(']');
    if (end > -1) {
        var language = navigator.userAgent.substring(start+1,end);
        document.write("<P>Language = " + language);
    }
}
//--></script>
 
To do it properly you need to read the Accept-Language header your browser sends e.g. en-gb

asp:
lang = Request.ServerVariables("HTTP_ACCEPT_LANGUAGE")

php:
$lang = $_SERVER["HTTP_ACCEPT_LANGUAGE"]

then redirect based on this.

Hope it helps,

Mike
0
 
huevodelataAuthor Commented:
I'm really thankful for your quick answers.
But i'll change the question a little bit.
Can i change the Language of a browser (not the Location of Windows XP) transparently to the client? This means without the Language Preference dialog box poping out.
The thing i need to do is: if a client choose a specified country in a pull-down combo, then change the Language of his browser properly, so the next time he enters the site he would be succefully redirected to the right site in the language of his country automatically, without asking him again. And i can't use cookies, sorry.
I thought a solution instatiating some Explorer object using the OBJECT tag in html in order to have more control of the browser, but that's too complicated i think.

Thanks again.
0
 
frugleCommented:
You want to change the location of a users browser without asking them? I think that would cause more security issues than setting their homepage without their permission... how about I change your browser language to Korean without your permission? I'm not worried that you don't have the language pack, nor that you may not know how to change it back... a reinstall should sort you out :-)

Mike
0
 
strolfeyCommented:
I think it may be possible to do via apache configuration? Perhaps you might get some better luck there...
0
 
huevodelataAuthor Commented:
I realized it can't be done the way I want.

Thank all of you for your time.

G.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.