Arabic Textbox Control

Normally, when you want to write in another language in word on any input form, you select the input language from the language bar, and then you write.

What if you don't want to go into this process? You want directly write into this field Arabic? This web control allows you directly, without even having your input lanague to arabic, to write ONLY in arabic.

Check it: , and give me your feedback.

 

You can download the javascript code, or the control here 

61 Comments

  • Salam aleikom
    Can you share the source code of your control?
    I want to make some modifications to make it compatible with Persian.
    thanks

    contact me with:
    aligholami77@yahoo.com

  • Hi Guys,

    Check this new version of the Arabic TextBox control. It contains all the properties and events of the textbox control.

  • Dear Brother, Assalamu Alikum. I am working in Saudi Arabia. This Text Box will be helpfull for me. Thanks,

    Can u come across if I type a arabic text in one text box and I need tp get English Translated word.
    In Arabox Text Box : I type arabic word as يسان
    English Text box : I need English word as YASSIN

    If you have any solution reply me.. Thanks, Mohammed Yassin

  • Dear Mohammed,

    What you are asking for a control that translates from english to arabic. The Arabic Textbox Control doesn't do that. It only allows writing in arabic.

    You can find other tools that does this for you.

  • Hello,

    Assuming that the Window is not Arabic, you need to add dir="rtl" as shown below for the input field so the cursor will be positioned at the right of the input field.

    Nice job, you can extended to include the Arabic numbers.


  • Hi Sameer,

    Thanks Sameer and thanks for the tip, but I left the direction to the developers to include it or not.

    As for the extending of the control to include the Arabic numbers, the numbers 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 are arabic numbers while the others are indian numbers :)

  • it does not work for me, i disable the ability to write Arabic from (Language and Regional Settings) and now i'm rtryingto type Arabic in your text box and it does not work

  • Dear Mona,

    you have to enable the javascript on your browser for this to work.

  • hi. Can you please post the source code. I need same text box for Arabic and English after user will select language from dropdown list

  • I have posted the javascript code. You can download it.

  • Hello,

    Thank you for providing such a nice control and code.
    you control converts or enable arabic language in the
    textbox control, what if my next textbox required enable
    english character?

    Any help will be appreciated in advance

  • I have included javascript file in my project and call that function on textbox keydown event (TextBox3.Attributes.Add("OnKeyDown","EngToArabic();"); ) but the problem is that when i give any character in textbox it return me the digit number. Please help me how to use it.
    Thanks

  • Why don't you use the control and not the javascript? The control is a textbox that calls this javascript.

  • Thanks actually i am working on vs 2003 and control is comptable for vs 2005. My problem has been solved I have called that funcation on onkeypress event and do some changes and it worked fine.

  • Dear Brother,
    I tested it but it rights ENGLISH !!, I'm using Vista and my default language is English, i noticed that when i type b i find arabic LAM and with shift+t i also find arabic. I think you have some bug in the code.

    Best Regards,
    Shabayek

  • Dear Abdelrahman,

    The problem is not from the control but from your database. The column where you are saving the value appears to be "varchar", and not "nvarchar". The difference is that the "varchar" holds ASCII characters, while the "nvarchar" holds the Unicode Characters.

  • thank u for the nice job
    but iam creating winform application and i need that control
    but iam new in c# can u tell me how to use in ,i mean how to use this dll file?

  • This control is a web control and not a windows control. If you want to build the same functionality for your winform application, you have to transform the javascript into a C# function (which shouldn't be too much difficult)

  • Hi guys , Itz working fine in IE but when it comes to Firefox the text is shown in English. Any solution for this !!

  • Thanks for the code, but it works fine with IE, but not with other browsers like, Google chrome or Mozilla firefox. Kindly let me know, what has to be done for supporting with all types of browsers.

    Thanks.

    Vasan.

  • how can i make my textbox only for english character and numerics like you ddl file and javascript not allowing english event client side change the keyboard same thing i wana apply for english.Please help me out regarding this issue.

    Thanks in advance

  • It doesn't work in firefox. Please give me the code that works well in the firefox too.

  • this demo dosen' t work for me.
    I use FF and ubuntu and js enabled too
    check your code for compatibility at different browser such as FF

  • Nice job man. My team is going to built a application where users can type text in arabic. I have used your control. But how to check it.I tried typing "asdf" in your control and translated in google translation. Is this correct way to check

  • And also how to make it multi line text box where the users can type endless

  • it's not suitable for other browsers

  • السلام عليكم
    عمل رائع ولكن الاروع انك شاركته مع الآخرين
    والى المزيد وبارك الله فيك

  • Nice work. I would appreciate further if its mozilla version could be provided.

  • waw it is great May ALLAH bless you always,,, many thanx dear

  • Thanks a lot!!! It's exactly what I'm looking for...

  • Does it work in ASP.NET 1.1?

  • hi salim, can i get the javascript for english text box when the input locale settings is in arabic. I tried to change the current one by you, i do not know what is to be done for latin keys, shftlatinkeys, specialkeys, and seek=96 and seek= 64 cases. You help is highly appreciated.

  • Great post !
    But I have a question for you

    What is I want to go with other languages like French, Danish, Dutch , Hindi etc... ?

  • when i change languae by alt +shift english to arabic then change cursor and like flag and same way i change arabic to english then not change flag cursor in rich textbox with c# programming. plz help me...

  • It works in IE but in Firefox its not working. I tried to re-code your javascript. On what I understand, event.keyCode only works in IE, but in Firefox and Chrome its not going to work.

    I added these line of codes window.event ? window.event.keyCode : ev.which; but with no luck.. can you help regarding this issue? as i would like to support it in any browser.

    thanks in advance.

  • Hi
    I have used your arabic textbox in a C# Web Application, but i have faced 1 issue and that is when the English keyboard is enabled and if you type (laam) it types twice in the textbox, however if Arabic keyboard is enabled it types properly.
    Can you check this issue and let me know what to do.


    Thanks

  • but it doesnt work with me and it always writs in english

  • The control is nice.. but only work in IE and not works in Firefox, Chrome etc

  • Thanks for This control , it's so helpful
    But I want to know how to set the cursor rtl " I mean that user understand the it's going to write arabic as it's write arabic but for first seen it's look like the PC Language " if the default is english it will be ltr " But still will right arabic "

  • Your control is great, I'm using it in my website. Thanks a lot!!

    But it is not working anymore in Internet Explorer 9 and in Mozilla Firefox 4.0 :(:(

    Is there a solution for that??
    Thank you.

  • this control is not working with browsers other than IE can any body tell me how can i do it with other browsers also

  • Hi
    This Code Dosnt work in IE9

  • ممكن حد يحكيلى كيف ممكن اربط ملف الجافا سكريب ب
    textbox

  • hi

    Please , i need English TextBox Control

  • Hi Friends,

    I downloaded the js file and .dll file. But I am not able to use the file.

    Anybody can help me to how to use the js file and how to use the assembly file in asp.net ?

    MANY THANKS IN ADVANCE !!!

    Anro

  • its same like normal textbox in my web page

  • not work in mozilla

  • dis control not supporting mozilla ,gopogle chrome except IE,so is the solution for tht..kindly let me know...

  • Great Job Man!!!!!!!!!!

    Is it possible to type the english with same style... I.e cursor wont move form the origin place.

  • WHILE TYPING NUMERIC VALUE IT SHOWING ERROR
    REST WORKING FINE

  • What this, it is not working in Firefox V 3.6.61

  • Is there a way or javascript rtl codes. when you press english the text is english then when it arabic it change to arabic.

  • While I type arabic text box accept after save and retrive
    change the charactors

  • Not working with chrome please check it

  • i have some little garden of herbs at home, i use them for baking foods
    and because herbal medicines.

  • A very informationrmative post and quite a large amount of really
    honest and forthright comments made! This certainly got me thinking
    a large amount about this issue so cheers a ton for dropping!

  • Great post, I conceive website owners should discover a ton out of this web blog
    it is rattling user genial .

  • I don’t always agree with everything you say, in spite of this you
    always discover me thinking! Instead of arguing with you this time,
    I’ll just say, “thanks for thinking”!

  • very nice post, i definitely really like this amazing site, continue it

  • How can I use the control to input Arabic text, save the text to SQL Server database and show saved Arabic text back again from database

  • I always spent my half an hour to read this webpage's articles all the time along with a cup of coffee.

Comments have been disabled for this content.