1

I am using google API to write Hindi text on my page

<script type="text/javascript" src="https://www.google.com/jsapi" />
    <script type="text/javascript">
        google.load("elements", "1", {
            packages: "transliteration"
        });

        function onLoad() {
            var options = {
                sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH,
                destinationLanguage: [google.elements.transliteration.LanguageCode.HINDI],
                shortcutKey: 'ctrl+g',
                transliterationEnabled: true
            };
            var control = new google.elements.transliteration.TransliterationControl(options);   
            control.makeTransliteratable(['<%= Page.FindControl("txtName").ClientID %>']);    
        }
        google.setOnLoadCallback(onLoad);       
</script>

And to toggle from Hindi to English or vice-versa, I use (Ctrl+g) as you can see.

Everything work fine, but after I hit a dropdown event, it stops working and all other defined textboxes for writing in hindi stops working.

I have my page inside UpdatePanel and only Submit button is in the trigger.

STF
  • 1,485
  • 3
  • 19
  • 36

0 Answers0