Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4236972
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T02:42:45+00:00 2026-05-21T02:42:45+00:00

I installed google toolbar recently and used the word translate feature where you hover

  • 0

I installed google toolbar recently and used the “word translate” feature where you hover the mouse over a word (say you’re browsing the French newspaper Le Monde), and it brings up the English translation. Very cool.

But I was wondering how they actually implement this? Obviously the code (javascript?) in their toolbar plugin has to talk to a server to do the look-up. But the domain is lemonde.fr, so isn’t this a cross-domain request which isn’t possible? The toolbar works on any site so there’s no requirement for that site to have special code installed.

Or are the rules different for browser plug-in code vs. javascript embedded in the site itself?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T02:42:46+00:00Added an answer on May 21, 2026 at 2:42 am

    Regular XMLHttpRequest between domains is blocked by the browser, but that isn’t the only wat to send a cross site request. A common way around that is JSONP, which is effectively the same as adding a script element:

    <script type="text/javascript"
             src="http://google.com/translate.js?word=baguette">
    </script>
    

    That <script> tag will be requested from Google – it doesn’t require a POST, isn’t strictly AJAX, and will not be blocked. If Google returns a sensible response, you can use it. There are many other ways of communication that aren’t blocked, but JSONP is usually the most straightforward.

    Even more importantly, a toolbar is a browser extension – not a web page extension. In general (unless sandboxed), it is the same as a program that runs on your computer – a toolbar can have unlimited access to the internet and to your personal files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please forgive if this question has been asked numerous times. I recently installed Eclipse
Installed Google App Engine 1.2.5 and Web Toolkit 1.7.1 . However I still get
I have installed Google App Engine patch and I get the following error when
I have installed Google Toolbox for Mac into Xcode and followed the instructions to
I just installed Google's Page Speed plugin to Firebug, and everything looks good except
I don't want to have the user install Google Gears so I can show
I installed WSS Infrastructure Update and MOSS Infrastructure Update ( http://technet.microsoft.com/en-us/office/sharepointserver/bb735839.aspx ) and now
I installed ActiveReports from their site. The version was labeled as .NET 2.0 build
I installed the wxWidgets source code, compiled it and am linking the libraries thus
I installed Visual Studio 2005 ( with SP1 ) and made the default settings

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.