The following code works in IE but not in Firefox.
<select name="language"
onChange="top.location.href=this.options[this.selectedIndex].value">
<option value="">Select a Language</option>
<option value="http://www.gildasclubwestchester.org/home.htm">English</option>
<option value="http://216.239.39.104/translate_c?hl=es&sl=en&u=http://www.gildasclubwestchester.org/home.htm">Spanish</option>
<option value="http://216.239.37.104/translate_c?hl=it&sl=en&u=http://www.gildasclubwestchester.org/home.htm">Italian</option>
<option value="http://216.239.37.104/translate_c?hl=fr&sl=en&u=http://www.gildasclubwestchester.org/home.htm">French</option>
<option value="http://216.239.37.104/translate_c?hl=de&sl=en&u=http://www.gildasclubwestchester.org/home.htm">German</option>
<option value="http://216.239.39.104/translate_c?hl=pt&sl=en&u=http://www.gildasclubwestchester.org/home.htm">Portuguese</option>
</select>
I have tried a number of variations of the above but none seem to work. |
Request for Question Clarification by
palitoy-ga
on
28 Jan 2005 10:06 PST
I have tried this code in Firefox on my machine and it appears to work fine.
Do you have javascript enabled in Firefox? To enable it you need to
go to Tools->Options in the Firefox menu bar, then click on the Web
Features tab and ensure that "Enable Javascript" is checked. With
javascript switched on the code runs fine, if it is switched off the
onChange command will not work.
Please let me know if this solves your problem and I will post it as
an official answer.
|
Clarification of Question by
hlf-ga
on
28 Jan 2005 10:15 PST
My Firefox browser is set to allow javascript. All other javascript
actions seem to work just fine.
Did you try the code snippet or did you try it from the URL?
Thanks for looking at this. I would welcome any other suggestions.
Howard
|
Clarification of Question by
hlf-ga
on
28 Jan 2005 10:22 PST
A further clarification. After receiving your comment I though the
problem could be with my computer or the particular installation of
Firefox. I downloaded and installed a fresh copy of Firefox on another
machine. Same problem. The URL that fails to translate is
http://www.gildasclubwestchester.org/home.htm
Howard
|
Clarification of Question by
hlf-ga
on
28 Jan 2005 10:29 PST
More. On the page in question the translate option also fails to work
in Netscape 7.1 and Opera 7. It works only in IE.
Howard
|
Request for Question Clarification by
palitoy-ga
on
28 Jan 2005 11:04 PST
Hi Howard
I tried the code snippet that you pasted here... when you say it fails
to translate what exactly do you mean? The translation will only
translate the words that are in the page code, it will not translate,
for instance, the six round buttons across the top of the page.
When I go to the URL in Firefox all of the pages appear to be correct
and all the text that can be translated has been.
|
Clarification of Question by
hlf-ga
on
28 Jan 2005 11:28 PST
Yes. I know that only the text will be translated. That does not
happen when I try it. I have found that if I drop the home.htm that it
works with the current home page file which is index.shtml.
With IE and the existing code for example, when I select Spanish the
upper section of the red bar shows Traduzca El Web site and in the
language box it shows Seleccione una lengua as it should. Also the ALT
tags under the circles are also translated but with Firefox I see the
page in English.
It is really weird.
Howard
|
Request for Question Clarification by
palitoy-ga
on
28 Jan 2005 11:34 PST
With my version of Firefox and Opera I only see what you are getting
in the your last comment... a properly translated page. The only
English that appears is in the graphics on the page.
|
Clarification of Question by
hlf-ga
on
28 Jan 2005 12:13 PST
Many thanks for looking at this.
It still fails to work on either of my computers running Firefox 1
under Windows XP 2.
I appreciate your efforts and recognize that you cannot fix what
appears to be a local problem.
Let us close the issue with my thanks.
Howard
|