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.
WSJ doesn't do "at", "to", or "the"
Submitter site didn't do "to", "the", or "XSLT".
Am I missing the concept of "any word"?
For my browsing needs I'm sure you can hard code in the javascript: 'tits', 'ass' and 'My Little Pony: Escape to Cloud Castle' (Hey don't judge, it's called 'niche').
ZOMGWTFPWNtKKTHNXBIBI!!!ONE!111!!!
Seems like the next version of the Oxford Dictionary will have that phrase repeated 10 000 times if this site's anything to go by ;)
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...
There is no reference for accessibility or making it 508 compliant? Does anyone know where to look for making ajax usable for this type of complience?
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.
Wow, those are some harsh replies to an innocent posting. Tho actually, in my IE 6 browser, your right-click simply doesn't work. I get the normal right-click menu.
Ajax n : a mythical Greek hero; a warrior who fought against Troy in the Iliad
Now you'd just have to tell your visitors why according to your dictionary a Greek hero can help me looking up words...
:/- spoon(_).
https://addons.mozilla.org/firefox/918/
"THERE IS NO JUSTICE, THERE IS ONLY ME." -Death
prettyprettypretty coolcoolcool!
Just because you're accessing it in a web browser does not make it a 'web site'.
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. The same is true of other browser-based applications that run on Intranets - these types of rich applications are not "web sites" and should not have to behave as such,they should be as rich as possible.
As someone who works on one of these intranet based rich web apps, I can say the fact the KHTML still does not have support for the right click menu (when all other major browsers have had it for years) is a major pain to me. It pretty much excludes KHTML/Konqueror from ever running our application.
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.
When I can click "Ctrl-Apple-D" while hovering over a word?
Oh crap - I swore I'd never become one of those "Look what my OS can do!!11!" Apple fans. Oh well. Take this is as a tip or hint, then, rather than a snark (as it was originally intended).
concrete5: a cms made for marketing, but strong enough for geeks.
Would you like to know how? :0)
I'm a Mac user, you insensitive clods!
Flying is easy, just throw yourself at the ground and miss. -Douglas Adams
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.
You != eveyone. Most people don't "customize their right click menus", and most people expect the context menu in an application to provide contextual information - if you aren't surfing the web the majority of items in a browser's context menu are anything but contextual.
For example - right click on an email address on a web page, I get crap like "Back", "View Page Source", "Bookmark Page" - nothing at all relating to the email address. Even if I highlight the text and right click (a no-no from a UI standpoint - extra unnecessary steps) - I stil get nothing relating to the application I am accessing. This is all because the web browser knows nothing about the application it is running, it is up to the developer to instruct it as to what is relevant contextual information for the 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.
I think you need to fire yourself and get a real job at a real company - the right click menus of course are not the only route to functionality in the application. But in the real world, any piece of functionality that does not work 100% across all browsers means that the application is unsupportable on that browser, because it can't pass through the QA cycle.
If the app can't pass through the QA cycle in a browser it "doesn't work" in the browser, period. Therefor our application does not work in Konq