Use GoogleInput Tool in Web Site

  1. <Html>  
  2.     <head>  
  3.         <script src="https://www.google.com/jsapi" type="text/javascript"></script>  
  4.         <script type="text/javascript" language="javascript">  
  5.         google.load("elements", "1", {  
  6.         packages: "transliteration"  
  7.         });  
  8.   
  9.         function onLoad() {  
  10.             var options = {  
  11.             sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH,  
  12.             destinationLanguage: [google.elements.transliteration.LanguageCode.HINDI],  
  13.             shortcutKey: 'ctrl+m',  
  14.             transliterationEnabled: true  
  15.         };  
  16.         var control = new google.elements.transliteration.TransliterationControl(options);  
  17. control.makeTransliteratable(['txt_Name']);  
  18. //TEXT1 is the id of the control which you will use for the transliteration.  
  19. }  
  20. google.setOnLoadCallback(onLoad);  
  21. </script>  
  22.     </Head>  
  23.     <form runar="server">  
  24.         <asp:TextBox Id="txt_name" runat="server"/>  
  25.     </form>  
  26. </html>