Slashdot Mirror


AJAX Inline Dictionary like WallStreetJournal.com

chevoldavis writes "Highlight any text on this site then right click. A tooltip containing the definition of the selected word should show up. This tutorial will show you how to accomplish this, step by step. You can modify it to call any function or webservice. This is similar to the WallStreetJournal.com except they show search results in their tooltip window and they leave the functionality of the context menu while I have chosen to supress it. "

11 of 52 comments (clear)

  1. stop that! by acvh · · Score: 5, Insightful

    I want my right mouse button to do what it always does, not what YOU want it to do.

    1. Re:stop that! by Tx · · Score: 3, Insightful

      And you don't find that annoying? You want to use your contect menu e.g. to copy some text, and then you have to use an additional click to close the pop-up that had appeared behind it, obscuring the article. GPP is right, that's annoying. That's not to say that non-annoying uses couldn't be found for this technique though.

      --
      Oh no... it's the future.
    2. Re:stop that! by tomhudson · · Score: 3, Insightful

      Its also annoying because it redraws the cursor every mouse move ... too much flickering for my taste.

  2. an ajax article.. by kwoff · · Score: 3, Insightful

    Is this on slashdot because digg is down ?

  3. 2 things by giorgiofr · · Score: 4, Funny

    1. I can right-click or double-click any word on any page on the webs and I get a nice "Dictionary" item in my context menu. That's because I use a sensible browser, so I don't depend on your service.
    2. My right-click menu is *sacred*. Really, I kill kittens on its altar every morning. Thou shalt not dare to touch it. For he will not slay thee in thy turn, etc etc. Seriously, don't mess with people's interface. Luckily my fancy browser denies such requests as yours.
    Did I mention I use a cool browser?

    --
    Global warming is a cube.
  4. This is great by Ohreally_factor · · Score: 4, Funny

    This is great, if you define all words as "The remote server returned an error: (500) Internal Server Error."

    --
    It's not offtopic, dumbass. It's orthogonal.
  5. Re:I'm bored, so I checked.... by magores · · Score: 3, Informative

    Sorry for replying to myself, but I forgot to mention, that I DO like this idea.

    It's kinda like what they do at http://newsinchinese.com/ And, sorta like the firefox extension from http://www.asdotrans.com/.

    I could see myself using a modified version of this.

    --
    The negative tone of my parent post was unintentional

  6. Just like the website... by __aaclcg7560 · · Score: 3, Funny

    So like the Wall Street Jounal website, this inline dictionary has some free word definitions but you need a subscription to see the rest? Not a very useful dictionary...

  7. Great, but Wrong by 99BottlesOfBeerInMyF · · Score: 5, Insightful

    I'm sure a lot of us find this kind of crap annoying. A website developer just not have enough information to determine what my most common tasks are and thus properly define a right-click menu for me. I don't want them to have that information. My right-click menu already has a dictionary in it, as well as a handful of other functions. Now this site pops up a second context menu on the page that takes much, much longer to load and has fewer of the functions I want.

    To me this says, "screw you" to users of decent browsers in favor of working around IE + Windows failure to provide a good way to integrate this functionality in the proper location.

  8. what about word translation ? by arkaino · · Score: 4, Interesting

    More useful would be to right click and get a menu with different languages for translating the word I'm highlighting.

  9. Dict Greasemonkey script by nitro322 · · Score: 3, Informative

    Any Firefox/Greasemonkey users out there that are interested in this may also want to check out the Dict script: http://userscripts.org/scripts/show/1467

    It adds a similar, but much less intrusive capability. Simply double-click on any word to highlight it, and the definition is shown in a small window. Once you're done, just click the X (or use my own slgihtly-modified version and click anywhere on the page) to close it.

    Of course, this has both it's pros and cons as compared to the original idea discussed in the story. Since it's a client-side solution, this isn't something that will be available to your visitors. However, the good news is that it doesn't hijack your browser's context menu, which, as mnay other people have commented, is something I personally despise.