Eno, I agree with you, using google ajax translate tool is a good option. But I just tried it and found the <table> tag has prevented the google ajax tool to work.
This is my code: <body> <div id="divWholePage"> <script type="text/javascript" src="http://www.google.com/jsapi"> </script> <script type="text/javascript"> google.load("language", "1"); function translatepage(lan) { alert ("trans to "+lan); var text = document.getElementById("divWholePage").innerHTML; google.language.detect(text, function(result) { if (!result.error && result.language) { google.language.translate(text, result.language, lan, function(result) { var translated = document.getElementById("divWholePage"); if (result.translation) { translated.innerHTML = result.translation; } }); } }); } </script> <a href="#" onclick="javascript: translatepage('zh');return false">Translate page</a> <form> column 3, column 1,Column 2 <table><tr></tr></table> </form> </div> </body> If you remove the <table> tags, it will work, but with <table> tag, it does not work at all. Any ideas for this? Thanks On Tue, Sep 29, 2009 at 3:43 PM, Eno <[email protected]> wrote: > > On Tue, 29 Sep 2009, Frank He wrote: > > > I saw that before. > > But how can I translate the whole web page and display it back on the > page? > > I thought mentioning AJAX and Google Translate in my last post was a good > clue... > > Or do you not know what AJAX means? > > > > -- > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" 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/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
