पर आधारित Google लिप्यंतरण कैसे करें मैं एक तमिल भाषा आधारित वेब एप्लिकेशन कर रहा हूं। मेरे आवेदन में, मैंने उपयोगकर्ता विवरण जोड़ने के लिए गतिशील फ़ील्ड का उपयोग किया। इसलिए, गतिशील फ़ील्ड में यह सुनिश्चित करने के लिए कई कक्षाएं हैं या कक्षा के आधार पर Google लिप्यंतरण का उपयोग कैसे करें?क्लास न आईडी
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript">
// Load the Google Transliteration API
google.load("elements", "1", {
packages: "transliteration"
});
function onLoad() {
var options = {
sourceLanguage: 'en',
destinationLanguage: 'ta',
shortcutKey: 'ctrl+m',
transliterationEnabled: true
};
// Create an instance on TransliterationControl with the required
var control = new google.elements.transliteration.TransliterationControl(options);
// Enable transliteration in the textfields with the given ids.
var ids = ['temrorary_address', 'permanant_address', 'bankbranch', 'member_name', 'father_husband', 'workingoffice_address', ];
control.makeTransliteratable(ids);
// Show the transliteration control which can be used to toggle between
// English and Hindi and also choose other destination language.
control.showControl('translControl');
}
google.setOnLoadCallback(onLoad);
</script>