Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Switiching between language
Old 07-22-2010, 08:54 AM Switiching between language
Skilled Talker

Posts: 97
Trades: 0
please i want to know if there is a possibility to force the user to type english characters
coz i made all my web site in arabic and germany languages

i want to force user to type the username and password in english characters

any ideas?
john_zakaria is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-23-2010, 07:46 AM Re: Switiching between language
Extreme Talker

Posts: 246
Trades: 0
I don't believe there is any way you can control that. However you can put up a virtual keyboard with English characters that they click on that will fill in the username and password (this is probably a terrible idea, but the only way I can think of that would work for your situation).
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
stbuchok is offline
Reply With Quote
View Public Profile
 
Old 07-23-2010, 09:00 AM Re: Switiching between language
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
You can't control their keyboard, but you can validate the input they give you. A simple regular expression /[^a-zA-Z ]/ will tell you if anything other than roman letters or spaces was entered. I recommend doing this on the server however, not with JavaScript.
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-23-2010, 10:26 AM Re: Switiching between language
Extreme Talker

Posts: 246
Trades: 0
Wayfarer07, that won't help for users who don't have the proper language settings to allow them to login. The user either needs to switch there language context or do some other way of getting the roman characters in there.

So he'd still be stuck with not being able to switch the end users language context so that they can login.

(a validation message would still be nice so that the user know why they are getting an error)
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
stbuchok is offline
Reply With Quote
View Public Profile
 
Old 07-26-2010, 02:07 PM Re: Switiching between language
wayfarer07's Avatar
Poo on You

Latest Blog Post:
Introducing WowWindow
Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
Trades: 0
JavaScript can't change a user's language settings, since that is a settings on the user's personal computer. JavaScript isn't allowed any access whatsoever to the user's computer, only the limited amount of information allowed to it within the browser window and its associated popup windows or frames (on the same domain).

So whatever solution you devise is going to have to be simply warning your users that they must configure their settings to use Roman letters. It's either that, or allow multinational characters.

Why did you decide that allowing arabic characters would be bad?
__________________
I build web things. I work for the startup
Please login or register to view this content. Registration is FREE
.
wayfarer07 is offline
Reply With Quote
View Public Profile Visit wayfarer07's homepage!
 
Old 07-27-2010, 06:23 PM Re: Switiching between language
Experienced Talker

Posts: 45
Trades: 0
I think your being close minded about solutions. I'm sure you can set the "input" field to have a "Pop Up" function on click. The popup then appears right over the field and says "Please, use english name." That would help and it's the only solution available to you as everyone else is correct.

However, I think you can make it so people can't use Arabic characters as long as they differ from english characters.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
Thizzle is offline
Reply With Quote
View Public Profile Visit Thizzle's homepage!
 
Reply     « Reply to Switiching between language
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.44647 seconds with 12 queries