Thank you very much I have en extra request.....
I would like to add a second input box which has to contain the result of the translation (result.translation). <input id='traduzione' type='text' value='Translation comes here' /> How can I do that? After the translation I will submit the English and the Danish text to a database. Thanks in advance GIno / webmaster On 18/05/2009, at 03.22, 小野(東京都 港区) wrote: > > ----- Original Message ----- > From: "webmaster" > Sent: Sunday, May 17, 2009 5:37 PM > Subject: input box for translation from a language to another >> http://serate-italiane.dk/translate.php > e.g. > http://www11.atpages.jp/chk1/eg.html > <input type='button' onclick='function_to_be_defined()' > value='Translate'/> > is > <input type='button' > onclick='initialize(document.getElementById("input_text").value);' > value='Translate'/> . > Here is function "nitialize" , not function "'function_to_be_defined". > If the input box,I think without callback function. > And in that function "nitialize" is > first, > function initialize() { > is > function initialize(val) { . > > and, > var frase = 'it has to be user defined'; > is > var frase = (typeof(val)=="string"?val:'it has not to be user > defined'); . > > and then, > (if you want translated into languages other than Danish,) add this > var chgL = document.getElementById('chg').value; . > > and, > google.language.translate(text, 'en', 'da', function(result) { > is > google.language.translate(text, 'en', chgL, function(result) { . > > and, add selent menu of "another languages". > > I'm sorry to repeat what I said,If the input box,I think without > callback > function. > By the way,I've created like this too (except javascript or ajax). > http://toobig.dip.jp/d/?chg=da > > By minatoku ono (kaigan(=coast,beach,shore)1 minatoku tokyo japan). > Here kaigan weather today is sunny, (like much too little hot!) > > > > --~--~---------~--~----~------------~-------~--~----~ 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] For more options, visit this group at http://groups.google.com/group/Google-AJAX-Search-API?hl=en -~----------~----~----~----~------~----~------~--~---
