Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Mar 2005
    Location
    Scottish Borders, UK
    Posts
    24
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Disappearing code in Windows browsers?!!

    The strangest thing seems to have happened to my site when it's viewed through any of the browsers I have (IE/Firefox/Netscape) in Windows. Yet these same browsers running under Mac OS X show the site as it should be (and always has been until recently).

    I have site translation that runs through Babelfish. You click on a country flag and a bit of code redirects you through Babelfish's free site-wide translation facility. As far as I'm aware, I'm not breaking any of their usage terms. All of a sudden, with no alteration to the code, the images of the country flags in any Windows browser have disappeared from the site. Viewing the source code shows a blank space in the code where the code for the images should be.

    In any browser running under OS X the images and source code appear as they should.

    The source code is:

    <p id="babeltext"><strong>To translate this site, click
    a flag</strong><br />
    <img src="images/icons/babelfish-right.gif" width="32" height="19" style="padding-right:30px" alt="Altavista Babelfish translation services" />
    <a href="http://babelfish.altavista.com/babelfish/tr?doit=done&amp;url=http://www.(my site)/&amp;lp=en_de" target="_blank"><img src="images/icons/germany.gif" alt="auf Deutsch" title="auf Deutsch" hspace="3" border="0" /></a>
    <a href="http://babelfish.altavista.com/babelfish/tr?doit=done&amp;url=http://www.(my site)/&amp;lp=en_nl" target="_blank"><img src="images/icons/netherlands.gif" alt="in Nederlandse" title="in Nederlandse" border="0" hspace="3" /></a>
    <a href="http://babelfish.altavista.com/babelfish/tr?doit=done&amp;url=http://www.(my site)/&amp;lp=en_fr" target="_blank"><img src="images/icons/france.gif" alt="en fran&ccedil;ais" title="en fran&ccedil;ais" border="0" hspace="3" /></a>
    <a href="http://babelfish.altavista.com/babelfish/tr?doit=done&amp;url=http://www.(my site)/&amp;lp=en_it" target="_blank"><img src="images/icons/italy.gif" alt="in italiano" title="in Italiano" border="0" hspace="3" /></a>
    <a href="http://babelfish.altavista.com/babelfish/tr?doit=done&amp;url=http://www.(my site)/&amp;lp=en_es" target="_blank"><img src="images/icons/spain.gif" alt="en espa&ntilde;ol" title="en espa&ntilde;ol" border="0" hspace="3" /></a>
    <a href="http://babelfish.altavista.com/babelfish/tr?doit=done&amp;url=http://www.(my site)/&amp;lp=en_pt" target="_blank"><img src="images/icons/brazil.gif" alt="em portugu&ecirc;s" title="em portugu&ecirc;s" border="0" hspace="3" /></a>
    <a href="http://babelfish.altavista.com/babelfish/tr?doit=done&amp;url=http://www.(my site)/&amp;lp=en_el" target="_blank"><img src="images/icons/greece.gif" alt="in Greek" title="in Greek" border="0" hspace="3" /></a>
    <a href="http://babelfish.altavista.com/babelfish/tr?doit=done&amp;url=http://www.(my site)/&amp;lp=en_ru" target="_blank"><img src="images/icons/russia.gif" alt="in Russian" title="in Russian" border="0" hspace="3" /></a>
    <a href="http://babelfish.altavista.com/babelfish/tr?doit=done&amp;url=http://www.(my site)/&amp;lp=en_ja" target="_blank"><img src="images/icons/japan.gif" alt="in Japanese" title="in Japanese" border="0" hspace="3" /></a>
    <a href="http://babelfish.altavista.com/babelfish/tr?doit=done&amp;url=http://www.(my site)/&amp;lp=en_zh" target="_blank"><img src="images/icons/china.gif" alt="in Chinese" title="in Chinese" border="0" hspace="3" /></a>
    <a href="http://babelfish.altavista.com/babelfish/tr?doit=done&amp;url=http://www.(my site)/&amp;lp=en_ko" target="_blank"><img src="images/icons/korea.gif" alt="in Korean" title="in Korean" border="0" hspace="3" /></a><br />
    ("Error 157" seems to occur when Babelfish is too busy. Try again later.)</p>


    but in Windows browsers it appears as

    <p id="babeltext"><strong>To translate this site, click
    a flag</strong><br />
    <img src="images/icons/babelfish-right.gif" width="32" height="19" style="padding-right:30px" alt="Altavista Babelfish translation services" />
    <a href="http://babelfish.altavista.com/babelfish/tr?doit=done&amp;url=http://www.(my site)/&amp;lp=en_de" target="_blank"> [large block of blank space] </a>


    etc.

    Ideas anyone? Have I been somehow 'blocked' by Altavista (which seems odd because it's a free facility), but just for Windows OS users? If so, how did they do that?

  • #2
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,641
    Thanks
    0
    Thanked 649 Times in 639 Posts
    Try encoding the search string. The slashes after the ? are stuffing it up. For example:

    http://babelfish.altavista.com/babel...e&amp;url=http%3a%2f%2fwww.(my site)%2f&amp;lp=en_ru
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #3
    New Coder
    Join Date
    Mar 2005
    Location
    Scottish Borders, UK
    Posts
    24
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by felgall View Post
    Try encoding the search string. The slashes after the ? are stuffing it up. For example:

    http://babelfish.altavista.com/babel...e&amp;url=http%3a%2f%2fwww.(my site)%2f&amp;lp=en_ru
    It makes no difference, I'm afraid. Also doesn't explain why the facility has displayed and worked fine for nearly 2 years before suddenly disappearing from Windows browsers only.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •