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.
"
I want my right mouse button to do what it always does, not what YOU want it to do.
Is this on slashdot because digg is down ?
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.
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.
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
It does not work with Opera (9).
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...
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.
More useful would be to right click and get a menu with different languages for translating the word I'm highlighting.
Just because you're accessing it in a web browser does not make it a 'web site'.
Umm, yes, it does. It is a page of markup and the very first line they send to my Web browser contains the Web standard they are employing.
If I am using a web-based AJAX email client like OWA or RoundCube mail I not only *expect* the right click menu to behave like a native client ( With options like copy message, move message, flag, delete, etc), I *demand* it.
Not me. If I'm using a Web browser, I demand it treat everything like the content it is. I don't want my controls of my software to be hijacked, or for it attempt to do so. I can already customize my right-click menu, by application and by Web site if I so desire. If a Web site wants to recommend additional functions for that site, that is fine, but things like a dictionary lookup are in no way something only my Web browser needs to access. I use the same dictionary in dozens of programs and I don't want to switch to their, half-assed, poorly configured one, just for their site. I also don't want to suddenly lose the other functionality of my contextual menu, like viewing the page's source, or blocking a particular ad server. No thanks.
It pretty much excludes KHTML/Konqueror from ever running our application.
Then you need to hire a competent UI designer. A contextual menu should never, and I mean never, ever contain functionality that cannot be accessed from another part of the program. A significant number of users don't know how to right click or will not think to try it to find some functionality. It is effectively hiding that function. Some users don't even have a right click button on their mouse and many users use some sort of alternative interface. Whether they are blind, have a palsy, are paralyzed, are working on a touch pad or stylus, or are using some other interface you've never dreamed of, the right-click menu is inconvenient or unavailable to a lot of users. If a user needs it to run your application you just violated a very basic UI design rule that is in pretty much any book you can pick up on the subject. Right-click menus should only be used as a shortcut for functionality that is also present elsewhere.
Seriously, fire your UI guy and get a competent one.
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.