On Wednesday, May 23, 2012 2:33:27 PM UTC+5:30, hosy li wrote: > > Is there any way to use transliterate api in chat box of forum which > is using ajax and javascript ? Thanks...
I mean it is working in textarea fields, but not working input fields have ajax, like search fields and chat box. Can you point me to right direction? I am using below code, > <script type="text/javascript" src="https://www.google.com/jsapi"> > </script> > <script type="text/javascript"> > > // Load the Google Transliterate API > google.load("elements", "1", { > packages: "transliteration" > }); > > function onLoad() { > var options = { > sourceLanguage: 'en', // or > google.elements.transliteration.LanguageCode.ENGLISH, > destinationLanguage: ['ml'], // or > [google.elements.transliteration.LanguageCode.MALAYALAM], > shortcutKey: 'ctrl+m', > transliterationEnabled: true > }; > // Create an instance on TransliterationControl with the required > // options. > var control = > new > google.elements.transliteration.TransliterationControl(options); > > // Enable transliteration in the textfields with the given ids. > var ids = [ "subject", "message", "transl1", "transl2" ]; > control.makeTransliteratable(ids); > > // Show the transliteration control which can be used to toggle > between > // English and Hindi. > control.showControl('translControl'); > } > google.setOnLoadCallback(onLoad); > </script> Do you have a script like this below code? http://bhashaindia.com/ilit/WebEmbed.aspx?language=Malayalam Thanks. -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] To view this message on the web, visit https://groups.google.com/d/msg/google-ajax-search-api/-/ZnXxRXSqp1kJ For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en
