PDA

View Full Version : Double click website word translation javascript




soonguy
Sep 6, 2009, 09:42 AM
Hi

I've installed a javascript which allows people to double click on a word in a webpage, and give a definition in various languages. However, this only works in WIndows, and a previous dicationary script I used also only worked in Windows.

Is it intrinsically not possible to have a javacript do this in Macs? Is it also true that likely any second-language English speaker who is a mac user would likely have installed such a feature, that would do this anyway? I note on my son's new mac laptop that double-finger on the pad will open the installed English dictionary for a word.

Thanks for your advice

Tony



angelwatt
Sep 6, 2009, 10:09 AM
JavaScript works in Mac browsers too. It's possible the JavaScript you're using simply isn't well written, or doesn't handle Mac appropriately for some reason. Without seeing the script it would be hard to say for sure. Mac does have a Dictionary built-in and some programs like Safari can look-up words from within the program.

Eraserhead
Sep 6, 2009, 10:13 AM
Can you give us a link?

Not Available
Sep 6, 2009, 01:01 PM
Maybe the JavaScript is not enabled in your browser, or the JavaScript file is not linked properly (path changes, name changes, incorrect declaration, and so on).

Eraserhead
Sep 6, 2009, 01:18 PM
My gut feeling says they are using IE-only Javascript.

soonguy
Sep 7, 2009, 04:41 AM
Thanks for your thoughts. Here's the script in a short test page:

http://www.internetevangelismday.com/testdictionary.php


I have also tried a different script which opens a new window with a defintion, at
http://www.internetevangelismday.com/testdictionary1.php
and wonder if that might work for you.


Thanks for any wisdom on this


Tony

angelwatt
Sep 7, 2009, 09:31 AM
Both of those web sites worked correctly for me on my Mac using Firefox 3.5 and Safari 4. I double-clocked the word "media" and it showed me definitions in multiple languages.

soonguy
Sep 7, 2009, 11:06 AM
Thanks! There must be something in my son's setup that is blocking it somehow. Javacript IS enabled.

If most people can get it, then that's good enough!


Best wishes

Tony