1.

Solve : Looking for help adding Yahoo's Babel Fish in Front Page?

Answer»

I am attempting to install Yahoo's Babel Fish in the common-to-all-page area at the left of my home page - www.hotlinecy.com. I copied the script into the html view and it does not work. The script appears in text on the right part of my home page above the home page counter. How do I get the icon to appear in the common area and link to the translator? I copied the icon but can't get it to work. It is just a gif. You are supposed to click on one of the flags to translate to or from that text.

 Thanks...Cy Stapleton, Lufkin, TXI may not have the answer but I think the version of FrontPage you're using would be helpful.Thanks for the response. I thought I had included the FP version. I'm using 2002.

Thanks again...

cyCan you post a link to instructions on the Babel Fish website?  You did get instructions somewhere, right?I looked at your HTML file for your home page and I see no javascript coding for Yahoo's Babel Fish.  You have the Babel Fish image on your page but your don't have the proper JavaScript to make it work.  Is http://babelfish.yahoo.com/free_trans_service the source you went to for your code? Quote from: soybean on September 05, 2009, 05:16:14 PM

Can you post a link to instructions on the Babel Fish website?  You did get instructions somewhere, right?

The problem is that I COULD not find any instructions. The way it should work is like on the site http://www.econohonda.co.nz/Contact_Us.html. This is a friend's site and he has no idea how it works. He is trying to find out but has had no LUCK so far.

I just copied and pasted the icon so I could see where in the html code it needed to be. If I link that icon to the Babel Fish website, the individual flags and the "translate this page" do not work.

Thanks

cyOf course not.  You need to do more than that.  Visit the link I posted and make your choice there.  Then, copy the code into your file as directed.I really appreciate the help and am BEGINNING to feel like that East Texas Bubba. I have linked the icon to the url you gave me. What that does is take me to the options to SELECT which one I want. The one with the flags is not an option, but the one that translates this page will work fine. I say I want that one and it takes me to a scrip to copy and paste in my html.

I pasted it in at about line 75, but nothing happens. How do I get the icon on the home page to find the script?

Thanks,

cyThe image on your page came from http://www.altavista.com/help/free/free_searchbox_transl, not http://babelfish.yahoo.com/free_trans_service.  So, we have two different sources here.  They display different images, based on the javascript code they provide you, but they both go to the same translation cite. 

I think your code is getting changed when you copy it into FrontPage's HTML view.  Here's what I see in your HTML file:

<script language="JavaScript1.2" src="http://www.altavista.com/static/scripts/translate_engl.js"></script>


               

<script type="text/javascript" charset="UTF-8"
language="JavaScript1.2"
src="http://uk.babelfish.yahoo.com/free_trans_service/babelfish2.js?from_lang=en&amp;region=us"></script>

Apparently, you've now attempted to paste code from two sources into your file.

Here's what the code should LOOK like from http://babelfish.yahoo.com/free_trans_service:

Code: [Select]<script type="text/javascript" charset="UTF-8" language="JavaScript1.2" src="http://uk.babelfish.yahoo.com/free_trans_service/babelfish2.js?from_lang=en&region=us"></script>

And, Here's what the code should look like from http://www.altavista.com/help/free/free_searchbox_transl:
Code: [Select]<script language="JavaScript1.2" src="http://www.altavista.com/static/scripts/translate_engl.js"></script>
So, pick one or the other.  And, of course, only use one of them in your HTML file.  Note that your present code line starts with &lt; and you have other characters such as &gt; that have gotten changed somehow from the original code. 

I believe you have two options for getting the code line correctly copied into your HTML file. One is to copy and paste in the same manner as previously done and then edit it to make sure it's correct.  The other way would be to use a different method of getting the code into your HTML file.  I have FrontPage 2000 but haven't used it for a long time. Anyway, the main menu has an Insert command.  One choice on the Insert menu is HTML.  This opens a box in which code from other sources can be pasted.  I don't know whether FrontPage 2002 has the same feature.  The purpose of it is to circumvent FrontPage's tendency to alter coding during a straight copy and paste, as you've done.  Again, I believe those are your two options for getting the coding correctly entered into your HTML file.Here is a very simple test I just did.
http://geek9pm.com/test.htm
It seems to work for me.
But I did not use Front Page.   



Discussion

No Comment Found