Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Mar 24th, 2006, 6:15 PM   #1
Mage_From_Antares
Newbie
 
Join Date: Mar 2006
Location: Hungary, Budapest
Posts: 8
Rep Power: 0 Mage_From_Antares is on a distinguished road
Javascript - Getting language settings

I have a site which has seperate pages for the hungarian and english languages,
and I want it to forward the browser to the page which uses the same language as
the user's setting.

Is there a way in Javascript to get the language setting of the user accessing
the site?
Mage_From_Antares is offline   Reply With Quote
Old Mar 24th, 2006, 6:36 PM   #2
Agent 47
Hobbyist Programmer
 
Agent 47's Avatar
 
Join Date: Nov 2005
Posts: 122
Rep Power: 3 Agent 47 is on a distinguished road
http://www.web-wise-wizard.com/javas...formation.html

It can be done, but it's wrong to rely on the client having JS
enabled for our site to work.

This is probly best done on the server. Something like:
http://techpatterns.com/downloads/ph..._detection.php
__________________
"I'm going to become rich and famous when I invent a device that allows you to stab people in the face over the internet"

Last edited by Agent 47; Mar 24th, 2006 at 6:58 PM.
Agent 47 is offline   Reply With Quote
Old Mar 24th, 2006, 6:45 PM   #3
Mage_From_Antares
Newbie
 
Join Date: Mar 2006
Location: Hungary, Budapest
Posts: 8
Rep Power: 0 Mage_From_Antares is on a distinguished road
Thanks for the quick and helpful reply Agent 47!
Mage_From_Antares is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:08 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC