[This is preliminary documentation and is subject to change.]

Translating Elements

DemoASPX
Results
The Microsoft Translator AJAX API has the ability to translate specific elements of a web site as well as the entire page. To accomplish, instead of parsing the entire page through document.body, you can specify an element by parsing document.getElementById(id).
Try it out in the demo below. Choose the language you would like to translate to and then click the Translate button. This will parse the paragraph above which has the elementId 'firstParagraph' to the translator method. The result will be that the first paragraph (above) is translated while this paragraph remains in English. Click on the ASPX tab above after trying it yourself to see exactly how this has been accomplished through JavaScript.