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

L

Larry

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:[email protected]?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!
 
C

chris leeds

I've used this tons without a problem:
http://automaticlabs.com/products/enkoderform/

a good way to do it with FrontPage is to use their form above, copy the
output from the text area on their page.

in FrontPage set your cursor where you want the email link to appear and
hit: insert/ web component/ advanced control/ HTML ... paste the encoded
stuff into this dialog box. (it'll appear as a yellow tag in FrontPage but
will look fine in a browser).

HTH
 
S

Steve Easton

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
 
L

Larry

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" <[email protected]> wrote in message news:[email protected]...



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:[email protected]?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!
 
T

Tom Pepper Willett

Larry: It works fine for me in IE and Outlook Express
--
=====================================================
Tom Pepper Willett [Microsoft MVP - FrontPage]
----------------------------------------------------------------------------
-------------------
Microsoft FrontPage:
http://www.microsoft.com/office/frontpage/prodinfo/default.mspx
http://msdn.microsoft.com/office/understanding/frontpage/

=====================================================
| 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
|
| 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:[email protected]?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!
 
S

Steve Easton

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 said:
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?
 
L

Larry

Hi Steve,
Tried your suggestion with no improvement. When you test in Mozilla does
the email form display on top of the contact page or in a new blank
window? If it works for you then there must be something with my local
preference settings of Mozilla but I've checked and there doesn't seem
to be anything that controls that feature.

I think I'll have to presume that Mozilla is incompatible with this
method and move on.
Thanx to everyone for the suggestions.

Larry

Steve said:
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


see if was easier to maintain.


window in Mozilla. If you use Outlook Express did you check the email link from IE & does it work?


window . Would there be an option that forces the email to open on top of the parent page?

--
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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top