[thelist] Email address hiding question

Robert Vreeland vreeland at studioframework.com
Thu Jun 30 23:43:42 CDT 2005


You could also include it directly in the event handler assignment. For
example:

<a href="#" onclick="dosomething(); return false"
This should work for any javascript enable browser as the onclick event
fires before the link.
----- Original Message ----- 
From: "Matt Warden" <mwarden at gmail.com>
To: "David Bailey" <dab.hand at xtra.co.nz>
Cc: <thelist at lists.evolt.org>
Sent: Friday, July 01, 2005 12:10 AM
Subject: Re: [thelist] Email address hiding question


On 6/30/05, David Bailey <dab.hand at xtra.co.nz> wrote:
> Hi Matt,
>
> I can see the logic in that, and that solved point 1, 3 and part of No.2.
> Much appreciated. Getting there!
>
> I now need to solve the problem of erasing the 'Please remove spam
blocker'
> message in the Body.
>
> Re No.4:
> >> 4. The process seems to open another browser window
> Why is this happening (excuse my ignorance). If I can eliminate it, I
would,
> but can live with it if necessary.

You might want to change the function to this, but you might get
unexpected results in some browsers (I don't have any idea, but it
seems like you might):

function sendmail() {
  // cancel std event processing
  event.returnValue = false;
  // remove spam blocker
  var url = event.srcElement.href.replace(".no-spam at please.", "@");
  url = url.replace("Please remove spam blocker. ", "");
  // open email window
  window.location = url;
}

As for your replace() failing, I don't know. Sorry.

-- 
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.
-- 

* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester
and archives of thelist go to: http://lists.evolt.org
Workers of the Web, evolt !



More information about the thelist mailing list