hi all,
Can anybody help me to find a code for english to gujarati
translator that translates english to gujarati on some event
I have searched a lot but I didnt get it anywhere.Actually I want
an accurate one..i.e it must give exact translation of the word
entered.
actually my code that i had implemented for the translator is...
<input type="text" id="firstName" name="firstName"
default="${firstName}" />
<script type="text/javascript" src="http://www.google.com/jsapi">
</script>
<script type="text/javascript">
google.load("elements", "1", {packages: "transliteration"});
</script>
<script>
function OnLoad() {
var currValue = document.getElementById("firstName");
alert(document.getElementById("firstName").value);
var options = {
sourceLanguage:
google.elements.transliteration.LanguageCode.ENGLISH,
destinationLanguage:
[google.elements.transliteration.LanguageCode.GUJARATI],
shortcutKey: 'ctrl+g',
transliterationEnabled: true
};
var control = new
google.elements.transliteration.TransliterationControl(options);
control.makeTransliteratable(["firstName"]);
var postValue = document.getElementById("firstName");
}
google.setOnLoadCallback(OnLoad);
</script>
........................................................................................................................................................................................
here, firstName is the name of the text box.
in this textbox only the code is getting converted.I want it to convert it in the other textbox.
Thanks........