Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Building The Application The Google Using the Google AJAX APIs


Published on

Building The Application
The Google AJAX Language API - Translation
• Translating an entry
– Translate icon triggers translation of title and snippet
– Callback will replace contents appropriately
– Icon will toggle back and forth

function processTranslation(index, elementId, result) {
// Grab the correct item and replace..
var entry = feedView.childNodes[index];
var node;
if (elementId == 'title') {
node = entry.title(); }
else {
node = entry.snippet();
node.innerHTML = result.translation;};

59 (c)2008 Google

Published in: Business, Technology
  • Be the first to comment