pouvons-nous utiliser Google AJAX Language API avec EXTjs ????? j'ai essayé exemple translitration i ont un fichier html et typemarathi.jsExtjs AJAX Langue Api
google.load("elements", "1", { packages: "transliteration" });
function onLoad() {
var options = {
sourceLanguage: google.elements.transliteration.LanguageCode.ENGLISH,
destinationLanguage: [google.elements.transliteration.LanguageCode.MARATHI],
shortcutKey: 'ctrl+g',
transliterationEnabled: true
};
// Create an instance on TransliterationControl with the required
// options.
var control = new google.elements.transliteration.TransliterationControl(options);
// Enable transliteration in the editable DIV with id
// 'transliterateDiv'.
control.makeTransliteratable([myname]);
}
google.setOnLoadCallback(onLoad);
il fonctionne très bien.
mais si j'écris le champ de texte dans ExtJS
Ext.onReady(function(){
var form1=new Ext.FormPanel({
renderTo:document.body,
frame:true,
title:'My First Form',
widyh:250,
items:[{ xtype:'textfield', fieldLabel:'First name', name:'firstname'}]
});
});
et essayer de passer prenom (attribut name à control.makeTransliteratable ([prenom])) il ne fonctionne pas ... il dit erreur identifiant invalide
mais si je passe -> (html nom textfiled lui) control.makeTransliteratable ([monnom]), il fonctionne très bien
(je veux saisir et afficher plusieurs langues données frontend ne anglaise i programatically utilisé ExtJS est il n'y a pas d'anot sa façon de le faire si oui le suggère moi. pls ..
Est-ce la même question que vous avez posée une heure plus tôt? http://stackoverflow.com/questions/2333826/extjs-with-google-ajax-language-api –