|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Change TextBox input language
Hi
![]() how can i change a textbox input language from english to greek? What I mean... In my keyboard I have 2 languages, english and greek. I want, when I type to a textbox, to write in greek, even if the language selected is english. I hope it's clear Thank you..
__________________
I'm smarter in my mother tongue.
|
|
#2
|
||||
|
||||
|
--moved to the HTML forum.
not sure it's possible, DR, but if so then it would be related to the "lang" attribute of the HTML. ![]() |
|
#3
|
||||
|
||||
|
wizi, there's no way this to be HTML..
I'll never find the answer here.. take it back.. ![]() |
|
#4
|
||||
|
||||
|
sorry DR, but it's not related to ASP at all - believe me, those roaming
the HTML forum are much more likely to be able to help. ![]() |
|
#5
|
||||
|
||||
|
well, it's at least js..
I found this Code:
function ChangeLanguage(whichEl)
{
if ( whichEl == "English")
{
setEnglish("Editor");
}
else
{
setUrdu("Editor");
}
}
The setEnglish function can be found here: http://www.pu.edu.pk/Opac/Include/UrduEditor.js I can't adjust it though.. |
|
#6
|
||||
|
||||
|
all that fancy code is doing is to change the direction of the text from
Left To Right --> Right To Left and vice versa. you can achieve the same by: Code:
<input type="text" dir="ltr" /> and: Code:
<input type="text" dir="rtl" /> I fear that none is relevant in your case. ![]() |
|
#7
|
||||
|
||||
|
With the precious help of JMH:
Code:
function greeklish(x)
{
var y=document.getElementById(x).value;
y=y.replace("a", "α");
y=y.replace("b", "β");
y=y.replace("g", "γ");
.
.
.
document.getElementById(x).value=y
}
<input type="text"
id="greek" onKeyUp="greeklish(this.id)">
|
|
#8
|
||||
|
||||
|
wow, I remove my hat in respect for JMH.. this would have never occured to me.
sometimes the simple solution just evades us! ![]() but.. what did you give him in return? ![]() |
|
#9
|
||||
|
||||
|
Quote:
I only gave her the idea, she did the rest ![]() We are still in discussion regarding what I get in return ![]()
__________________
jmurrayhead Did I help you out? Make me popular by clicking the icon!New Members:Proper way to post a question Powered by ASP.Net |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Change TextBox input language |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|