Instructions to integrate IME onto a webpage.

1. Copy indicime.js, wx.properties and inscript.properties(and any *.properties) to javascript folder or appropriate directory in your codebase.

2. Add the following script tag to your html page which requires IME integration.
  <script language="javascript" type="text/javascript" src="indicime.js"></script>

3. Call the init() method on body onload of your html page.

   Ex: <body onLoad="javascript:init();">

4. Add the components (select) for keyboard and language selection in your html page. (Peep into indicime.html file to check this).

5. Invoke the method getKeyboardMappingURL(this) on the keyboard component to get the keyboard selected.

   Ex: <span>Select Keyboard Layout</span>

              <select name="selectKeyboard"
                onChange="javascript:getKeyboardMappingURL(this);">
                <option>Select Keyboard</option>
                <option value="0" label="Inscript">Inscript</option>
                <option value="1" label="WX">WX</option>
              </select>


6. Invoke the method getLanguage(this) for the language component

   Ex:  <span>Select your Language</span>
              <select name="selectLanguage" onChange="javascript:getLanguage(this);" width="10px" >
                <option>Select Language</option>
                <option label="English"     value="-1">English</option>
                <option label="Devanagari"  value="0">Hindi</option>
                <option label="Bengali"     value="1">Bengali</option>
                <option label="Gurumukhi"   value="2">Gurumukhi</option>
                <option label="Gujarathi"   value="3">Gujarathi</option>
                <option label="Oriya"       value="4">Oriya</option>
                <option label="Tamil"       value="5">Tamil</option>
                <option label="Telugu"      value="6">Telugu</option>
                <option label="Kannada"     value="7">Kannada</option>
                <option label="Malayalam"   value="8">Malayalam</option>
              </select>

Done, you are ready to type in Indian language in your webpage by selecting the keyboard and language.

