Author Topic: Firefox / Thunderbird failing to interpret javascript  (Read 549 times)

Offline ternor

  • Hero Member
  • *****
  • Posts: 1792
Firefox / Thunderbird failing to interpret javascript
« on: February 20, 2010, 10:37:47 PM »
Hi.

I have clicked on an email link on a page opened in Firefox.  The link is written in javascript and I have javascript enabled in Firefox.  A Thunderbird write window opens and shows two email addresses which are parts of the script, not a conversion to an email address.  The email button is on the page http://www.depressionservices.org.au/depressioNet/board-of-directors.html and the script is  
Quote
<script language='JavaScript' type='text/javascript'> <!-- var prefix = 'ma'   'il'   'to'; var path = 'hr'   'ef'   '='; var addy54822 = 'dted'   '@'; addy54822 = addy54822   'depressioNet'   '.'   'com'   '.'   'au'; document.write( '<a '   path   '\''   prefix   ':'   addy54822   '\'>' ); document.write( addy54822 ); document.write( '<\/a>' ); //-->\n </script><script language='JavaScript' type='text/javascript'> <!-- document.write( '<span style=\'display: none;\'>' ); //--> </script>This email address is being protected from spam bots, you need Javascript enabled to view it <script language='JavaScript' type='text/javascript'> <!-- document.write( '</' ); document.write( 'span>' ); //--> </script>

Can anyone suggest a fix for this problem please?

I think it is a Firefox problem because I cannot read the email link, only the script.

P.S. I have tried clearing the cache with no change.  Konqueror cannot even see the email link.
« Last Edit: February 20, 2010, 11:25:22 PM by ternor »

Offline YouCanToo

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 5333
  • Location: Lebanon, OR., USA
    • Spreading the word.......
Re: Firefox / Thunderbird failing to interpret javascript
« Reply #1 on: February 21, 2010, 01:34:04 AM »
Wow, I must be really blind. I do not see a email button or for that matter and email link anywhere on the page.
I looked at their source code for the email and I am not surprised that it is not displayed correctly. There are a bunch of errors in their javascript.  As far as I have been able to make out, the email address is dted@depressioNet.com.au    

I hope that it helps you out.  This is what I see on my machine when I corrected the errors I found.

dted@depressioNet.com.au

This email address is being protected from spam bots, you need Javascript enabled to view it.
NOTE: I am not sure that the email address is 100% accurate as I could not figure out one error in the script. Sorry that I was more of a help.
« Last Edit: February 21, 2010, 01:36:03 AM by YouCanToo »




Be sure to visit the NEW Knowledge Base


Linux is user-friendly- it's just picky who its friends are!

Offline ternor

  • Hero Member
  • *****
  • Posts: 1792
Re: Firefox / Thunderbird failing to interpret javascript
« Reply #2 on: February 21, 2010, 01:37:15 AM »
Thanks YouCanToo.