-
Notifications
You must be signed in to change notification settings - Fork 0
/
Online-Urdu-Typing-JavaScript-based-UrduTextBox-using-Phonetic-Keyboard.html
33 lines (30 loc) · 1.75 KB
/
Online-Urdu-Typing-JavaScript-based-UrduTextBox-using-Phonetic-Keyboard.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<html>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<head>
<Title>Online Urdu Typing: JavaScript based UrduTextBox using Phonetic Keyboard</title>
<script src="urdutextbox.js"></script>
<script>
window.onload = myOnload;
function myOnload(evt){
MakeTextBoxUrduEnabled(txtBox);//enable Urdu in html text box
MakeTextBoxUrduEnabled(txtBox2);//enable Urdu in html text area
}
</script>
</head>
<body>
<h2>Now you can Write / Type Urdu Online on WebPages developed using HTML, PHP , JSP, classical ASP or Dot Net (ASP.NET)</h2><br>
Following are sample Urdu text boxes using JavaScript, the text box has been tested on diferent web browsers and works well on Mozilla FireFox, Google Chrome, Microsoft Internet Explorer , Apple Safari and Opera web browsers. <br><br>
A software programmer / developer only needs to add reference to javascript file called <a href="urdutextbox.js" target="_blank">urdutextbox.js</a> in their web pages and add ordinary text box using HTML. For details, have a look at source code of this web page to get the understanding of how to enable Urdu in HTML text box.<br><br>
<center>
Urdu Text Box <input id="txtBox" name="txtBox" type="text" dir="rtl" style="background-color:#CCFFCC;"><br><br>
Urdu Text Area (Type Urdu Here) -> <textarea id="txtBox2" name="txtBox2" dir="rtl" cols="50" rows="5" style="background-color:#CCFFCC;"></textarea>
</center>
<br><br>
<h4>The Urdu keyboard used to type Urdu in above textboxes is called <a href="http://www.ajsoftpk.com/urdubar/keyboard/up_keyboard.html" target="_blank">Urdu Phonetic Keyboard Layout</a>.</h4>
<br />
Contact Naseem Amjad at [email protected]
<br />
<center><a href="http://www.ajsoftpk.com/naseem_amjad/urdu/">Urdu Software</a></center>
</body>
</html>