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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Selected Language on Language bar

Status
Not open for further replies.

Tony220

Programmer
Apr 18, 2004
17
US
Hi,
Q: Is there a way using Javascript to change the selected language on the Language bar when the user selects a text box and then change it back when the user has finished typing in that text box.

I want the default typing language to be something other than English. If the user does not have that language installed I suppose I would have to leave it as English, or whatever their selected language is.

Thanks a load
 
you mean like an instant translator, probably not...

__________________________________________________________
"The only difference between me and a mad man is that I'm not mad."
- Dali
 

>> on the Language bar

The what? Is this some new toolbar for IE/NN that I haven't seen? Can you explain more about "the Language bar", what it is, and where it can be found?

Dan
 
I hope not!
I am having enough problems with the language bar as it is without websites being able to change it!

But maybe you could change the font for the textbox to something with international characters?

I think that in css there is even a possibility to make the browser download fonts.
 
I realise that my answer above is not satisfactory.
The only other way that I see is that you write a keyboard handler in an onkeydown( for keycode) or onkeypress (for unicode) event.
 
I have no idea myself....sounds obsolete to me

__________________________________________________________
"The only difference between me and a mad man is that I'm not mad."
- Dali
 
To the immediate left of the clock and running programs one can have a toolbar called the language bar. (2000 and xp)

Try right clicking on the task bar > selecting toolbars > Language bar.

You don't really need a language bar to use mult. languages. if you just install the extra languages there is a shortcut key to toggle between them (I don't rember it offhand) (Under the hood starting with 2000, windows uses unicode and can therefore easily support mult. languages at once.)
When you switch languages your keyboard types in the "switched to" language

what I would like to do is to make it easier for users by auto switching them to the foreign languge if they have it installed as soon as the click on the textbox and switch out of the foreign language as soon as the leave the text box.

Does this help?
 
i know what your talking about know, I don't think this can be done with javascript ask in the vb forum...

__________________________________________________________
"The only difference between me and a mad man is that I'm not mad."
- Dali
 

Now I know what you're talking about. Hmmm - I have both XP Pro and 2000 Pro, and neither have this toolbar ;o)

But anyway - if it can be done with JS, it would probably have to be via some sort of ActiveX or Windows Shell call, which would restrict you to IE only... But you'd need to search MSDN for this one, I think.

Dan
 
Dan,
you should be able to change the language via control settings

__________________________________________________________
"The only difference between me and a mad man is that I'm not mad."
- Dali
 
Tony, tony,
don't go that way!

What if suddenly on your machine the keyboard would enter other characters then the ones you pressed?

I know you would change it back to what it was, but bet you that someone else would leave your keyboard in russian or french.

I know how bad that feels as my computer spontaneously changed the language settings every now and then!

I had to re-format & install to get rid of that!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top