Re: Re - previous post from MVP 'secure email addr in external js'

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Steve Easton (admin_at_95isalive.com)
Date: 06/12/04


Date: Sat, 12 Jun 2004 09:35:14 -0400

I've tried it in both IE and Mozilla.

Try changing the method used to call the script by removing the language=javascript and just using

<script type="text/javascript" src="external.js">

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
.......................with a computer
"Larry" <paxman@sympatico.ca> wrote in message news:#fzxoYDUEHA.2028@TK2MSFTNGP11.phx.gbl...
> Chris - thanks for the enkoder idea. I've used it in other webs but I thought I'd try this idea to
see if was easier to maintain.
>
> Steve - I moved the email addresses into the common js file. No joy - email still opens in a blank
window in Mozilla. If you use Outlook Express did you check the email link from IE & does it work?
>
> I  have a gut feeling it's the 'open(href="mailto:' statement  in the js that's cloning a new
window .  Would there be an option that forces the email to open on top of the parent page?
>
> Larry
>
> Steve Easton wrote:
>
> You're calling two scripts which can cause a problem.
> Combine the scripts functions into one external file and make it a master external .js file
> Everything in the "email" file can be added to the main file  and then you only call one script
> file.
>
> --
> Steve Easton
> Microsoft MVP FrontPage
> 95isalive
> This site is best viewed............
> .......................with a computer
>
> "Larry" <paxman@sympatico.ca> wrote in message news:ugzpJpAUEHA.3984@TK2MSFTNGP09.phx.gbl...
>   A previous post gave information on a scheme for hiding email addresses
> from spiders in a js file. I've applied the idea and it works fine
> except that in Mozilla when the button is selected a new blank window is
> opened as well as the email form which is a bit annoying for the user as
> they've goto close the window to go back to the site.
>
> I cannot check  the button in IE as I've Mozilla set as default. In
> Opera it doesn't seem to work at all.
>
> See: http://www.bed-and-breakfast-travel.com/infopages/contactus.html
>
> Example of js file contents:
>
> function bnbweb(){
> open(href="mailto:webmaster@bed-and-breakfast-travel.com?subject=Website
> Information Request");
> }
>
> Have I run into the browser incompatible thingie again?
>
> Larry
>
> --
>        For your security and peace of mind ALL emails are automatically scanned
>         with the latest Norton AV Virus Definitions. Not that I have any virus'
>            but why not be careful! I get virus signature updates regularly!
>
>                  A Belt and Suspenders are the best security invented!
>
>
>
>
> --
>        For your security and peace of mind ALL emails are automatically scanned
>         with the latest Norton AV Virus Definitions. Not that I have any virus'
>            but why not be careful! I get virus signature updates regularly!
>
>                  A Belt and Suspenders are the best security invented!


Relevant Pages

  • Re: image size
    ... I was trying to create a setTimeout in the script to give it a little more time to query the server ... HTMLstring to ensure that the HTMLstring is created and ready to write when the window is opened. ... Steve Easton ... >>> Steve Brixner ...
    (microsoft.public.frontpage.programming)
  • Re: image size
    ... I have implemented a revised script on my page. ... "Steve Easton" wrote: ... >> image in the appropriate window, simply by reading the image size and then creating the window. ... >> The following will return the dimensions of an image. ...
    (microsoft.public.frontpage.programming)
  • Re: image size
    ... image in the appropriate window, simply by reading the image size and then creating the window. ... With this one the image needs to be in the same location as the page running the script. ... >> Steve Easton ... >> Microsoft MVP FrontPage ...
    (microsoft.public.frontpage.programming)
  • looping on window objects
    ... <SCRIPT> ... you will get a list of all objects contained in the current window. ... It works fine in Oper, Mozilla, and Safri, but in Explorer 7, all functions are missing. ...
    (microsoft.public.scripting.jscript)
  • Re: image size
    ... Haven't gotten it to work correctly in Mozilla, Netscape, Firefox yet. ... Steve Easton ... I have implemented a revised script on my page. ...
    (microsoft.public.frontpage.programming)