Copy these files to web root:
urduJSedit.js
urduJSedit_keyboard.js
urduJSedit_kb.css
In main file (e.g. index.htm), add these lines in <HEAD> section:
<script src="urduJSedit.js" type="text/javascript"></script>
<script src="urduJSedit_keyboard.js" type="text/javascript"></script>
<link href="urduJSedit_kb.css" rel="stylesheet" type="text/css" />
In main file (e.g. index.htm), add these lines in <BODY> section:
<script type="text/javascript">initKeyboard("txt2");</script>
To convert a <textarea> to use urduJSedit, add this line to main file (e.g. index.htm):
<textarea id="txt" name="message" dir="rtl" class="urdujstextarea" onfocus="currentEditor('txt');" onkeypress="KeyPress(event);" rows="7" cols="50"></textarea>
To print keyboard layout, add these lines to <BODY> section in main file (e.g. index.htm):
<script type="text/javascript">PrintKeyboard();</script>
Please refer to supplied index.htm for a demo.
Other information
-----------------
To switch language with [Ctrl]+[Space] shortcut, edit urduJSedit_keyboard.js and change line 3:
var ctrlSpaceChangeLang = false;
- to -
var ctrlSpaceChangeLang = true;
Note: Opera already has [Ctrl]+[Space] shortcut defined.
Style for urduJSedit keyboard and text area are defined in urduJSedit_kb.css
urduJSedit is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
urduJSedit is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with urduJSedit; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA