I try to insert google multilingual typing input script (as below) to my 
website. But it is not working in form field (input text field). how to fix 
it ? 
I want to type in local language at forms.

I used script (it is working without forms): 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
   

 <script type="text/javascript" src="https://www.google.com/jsapi";></script>
    <title>Pisumathu Kannada Rich Text Editor</title>
   



 <script type="text/javascript">

      // Load the Google Transliterate API
      google.load("elements", "1", {
            packages: "transliteration"
          });

      function onLoad() {
        var options = {
            sourceLanguage:
                google.elements.transliteration.LanguageCode.ENGLISH,
            destinationLanguage:
                [google.elements.transliteration.LanguageCode.KANNADA],
            shortcutKey: 'ctrl+k',
            transliterationEnabled: true
        };

        // Create an instance on TransliterationControl with the required
        // options.
        var control =
            new 
google.elements.transliteration.TransliterationControl(options);

        // Enable transliteration in the editable DIV with id
        // 'transliterateDiv'.
        control.makeTransliteratable(['transliterateDiv']);
      }
      google.setOnLoadCallback(onLoad);
    </script>



  <style type="text/css">
<!--

#transliterateDiv {
font-size:18px;
}
-->
</style>



  </head>
  <body>
    Type in Kannada : <br><br />
    <div id="transliterateDiv" contenteditable="true" 
style="width:500px;height:200px;border:1px solid;overflow-y:scroll">
</div>
    (Press "Ctrl+k" to toggle between English and Kannada)
  
  </body>
</html> 

-- 
You received this message because you are subscribed to the Google Groups 
"General" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-translate-general/-/zrsWfx-MuX8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-translate-general?hl=en.

Reply via email to