I have developed a web site: Some fields are entered in English while others are entered in Arabic language.
Now i wanna simplify the input operation for the user and want Arabic textbox as a DLL.
I have one but it works only with IE – not with firefox or google chrome ..
thanks so much..
How to enforce the user to write in Arabic? I mean moving the cursor directly without (ALT + SHIFT) keys every time when trying to change the language… If there is any way, property , DLL or what ever to do that…
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
You could use this mature javascript library that works fine on firefox and IE, just add an attribute like lang=’fa’ or lang =’en’ to your textbox and you’re done, sure you can tailor it for your usage.
it’s in persian and you can translate it with google to read the page.
I’ve done the adding attribute in client code and it’s like this
<script type="text/javascript">
$().ready(function () {
$("input,textarea").each(function () {
$(this).attr("lang", "fa");
});
});
</script>
Method 2
Why you don’t use direction and alignment properties of standard text box instead of an alternative one?
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0