>>im looping through a string, replacing emails with an
obfuscated/hidden version of the email address.
I may have a simpler solution:
I have these CF and JS functions in Application.cfm:
</CFSCRIPT>
function hideAddress(address)
{
return replace(replace(address, "@", "$"), ".", ";", "all");
}
</CFSCRIPT>
<SCRIPT>
function showAddress(address)
{
address.href = address.href.replace(/;/g, ".");
address.href = address.href.replace(/\$/, "@");
}
<CFOUTPUT>userAreas="#session.areas#".split(",");</CFOUTPUT>
</SCRIPT>
hideAddress replaces @ by $ and the dot by a semicolon in the address.
and on client side, showAddress will restore the correct address before
opening the user's mailer.
eMail sniffer robots won't see the addresses.
If ever this is what you are tring to do.
--
_______________________________________
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258861
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4