PDA

View Full Version : Need email Riddler help



jtskr76
08-03-2005, 06:39 PM
Hello,
Javascript is very new to me and I'm having trouble understanding the email riddler I found that encrypts email addresses. What I can't seem to figure out from the instructions is where all the code goes on the page. Does it all go in the "head" of the page? Then how do you display an email link within the body? Please help. The code it generated for me is below:
Thank you



<script type="text/javascript">

/***********************************************
* Encrypt Email script- Please keep notice intact.
* Tool URL: http://www.dynamicdrive.com/emailriddler/
* **********************************************/

var emailarray6213= new Array(97,98,108,97,122,101,107,53,64,99,111,109,99,97,115,116,46,110,101,116)
var postemail6213=''
for (i=0;i<emailarray6213.length;i++)
postemail6213+=String.fromCharCode(emailarray6213[i])

document.write('<a href="mailto:'+postemail6213+'?subject=contact us now"></a>')

</script>

Twey
08-03-2005, 06:46 PM
It goes wherever you want the email link. Optionally, you can put:

<script type="text/javascript">

/***********************************************
* Encrypt Email script- Please keep notice intact.
* Tool URL: http://www.dynamicdrive.com/emailriddler/
* **********************************************/

var emailarray6213= new Array(97,98,108,97,122,101,107,53,64,99,111,109,99,97,115,116,46,110,101,116)
var postemail6213=''
for (i=0;i<emailarray6213.length;i++)
postemail6213+=String.fromCharCode(emailarray6213[i])
</script>
in the head, and then

<script type="text/javascript">
document.write('<a href="mailto:'+postemail6213+'?subject=contact%20us%20now">Click here to contact us</a>')
</script>
wherever you would normally put the link. On a side note, you have forgotten to put in link text. I have added it in red. If you don't put this in, you won't see anything in the page; it is the text the user clicks on to view the link (e.g. "Click Here" in Click Here (http://www.example.com/)).

jscheuer1
08-03-2005, 06:59 PM
Well it says that your email is:

ablazek . . .

I took off the rest. If you are encrypting it, you don't want it published here.

To answer your question, you put that in the body of your page where you want the email link to appear. There is just one thing missing, in this line:

document.write('<a href="mailto:'+postemail6213+'?subject=contact us now"></a>')you need some text or an image between the two red brackets that the users will see and can click on. Like:

document.write('<a href="mailto:'+postemail6213+'?subject=contact us now">Contact Us!</a>')

dTeChic
06-14-2006, 10:20 PM
Hi,

I'm trying to add Email Riddler the destination or recipient field of FishForm, but I kep getting the following error:

Error: No Recipient
No Recipient was specified in the data sent to FishForm. Please make sure you have filled in the 'recipient' form field with an e-mail address. More information on filling in recipient form fields can be found in the README file.


Can this work with FishForm? I've tried it a bunch of different ways. I've added part of the script in the <HEAD>. I tried putting <input type="hidden" name="recipient" value="" /> instead of <input type="hidden" name="destination" value="" />, but nothing has worked. :confused: I was able to get the email link to work but not the hidden recipient form field. Any suggestions?

Here's a link to the test form (https://https0.ezpublishing.com/dancecheer.net/productsform3.html) if you'd like to see the code.

One other question...do you know how I can also use Email Riddler on an image map (like the email footer on this same link)?
Thanks!

jscheuer1
06-15-2006, 03:59 AM
I think it can only be used with the mailto: protocol (not the best choice for email from a web page, what you are using sounds superior to mailto:). FishForm sounds like a type of formail (form mail), I've not seen any encryptors that work with that. Best idea, just use a spam filter on the inbox (back end strategy) for the receiving email address. Just about any successful front end encryption will also frustrate some valid users as well as any spam bots, some of which may be able to decrypt the address anyway.