我們可以使用谷歌AJAX語言API與EXTjs ????? 我已經嘗試例如用於translitration我有一個HTML文件 和typemarathi.jsExtjs AJAX語言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);
它工作正常。
,但如果我寫的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'}]
});
});
的文本框,並嘗試通過姓名(名稱屬性control.makeTransliteratable([名字])),那麼它不工作...它說無效的ID錯誤
但如果我通過 - >(HTML textfiled名稱的話)control.makeTransliteratable([MYNAME])能正常工作
(我想鍵入和顯示多個nonEnglish語言數據 編程前端我用EXTJS是有沒有一個她的方式如果是,建議我。請致電
這與您在一小時前問過的問題相同嗎? http://stackoverflow.com/questions/2333826/extjs-with-google-ajax-language-api – 2010-02-25 16:49:51