PDA

View Full Version : Email Riddler .innerHTML help!



pookeyblow
12-03-2009, 01:18 AM
1) Script Title: Email Riddler

2) Script URL (on DD): http://www.dynamicdrive.com/emailriddler

3) Describe problem:

I'm using Shadowbox (http://www.shadowbox-js.com) to create a "light box" and inside the box I have an email link using Email Riddler (http://www.dynamicdrive.com/emailriddler).
Seems to be a conflict somewhere because everytime I try to use the Shadowbox (http://www.shadowbox-js.com) in Firefox, the whole page goes blank and only the e-mail link is visible. Works great in Safari.
I did a search and found out something about .innerHTML, but I have no idea what to do with the .innerHTML to fix it!

You can see the site I'm working on here (bit.ly/297LCa).

Does anyone know how I can fix this problem?

jscheuer1
12-03-2009, 01:30 AM
Email Riddler is extra baggage no page needs. The best solution is to use a server side email program like Formail or PHPList (there are at least several others I'm sure). But if you insist on using the user side mail client (not everyone even has one) then:

http://home.comcast.net/~ansiguy/emailen1.htm

by yours truly is a better solution. Once it has encrypted your email address(es), you just paste the code as ordinary HTML, so no javascript will be used on the finished page for this, eliminating any possible script conflicts.

However, what you are describing as a problem in the first place may have nothing to do with Email Riddler. It may be due to invalid HTML code. Most browsers will error correct invalid HTML code if it isn't too far gone. But once you start importing it to a light box or do anything to it where the script parser may get a hold of it, all bets are off.

pookeyblow
12-03-2009, 03:13 AM
thanks for the link.. seems a lot easier! but is it possible to encrypt the email address and use the address itself as a link? this is possible with Email Rddler..

jscheuer1
12-03-2009, 05:35 AM
Yes. Say your email address is:

someone@some.com

You input that into the first field and hit encrypt/decrypt with the encrypt radio button selected. In the "Full mailto Statement" field you will get this:


mailto:%73%6f%6d%65%6f%6e%65%40%73%6f%6d%65%2e%63%6f%6d

Just make that your href for a link:


<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;%73%6f%6d%65%6f%6e%65%40%73%6f%6d%65%2e%63%6f%6d">Contact Me</a>

And it will be read by the browser as:


<a href="mailto:someone@some.com">Contact Me</a>

But bots won't have a clue what it is.

pookeyblow
12-03-2009, 10:58 AM
I'm sorry. I didn't explain it very well. What I meant was if it's possible to do it like this, just encrypted:

<a href="mailto:someone@some.com">someone@some.com</a>

jscheuer1
12-03-2009, 11:15 AM
I'm sorry. I didn't explain it very well. What I meant was if it's possible to do it like this, just encrypted:

<a href="mailto:someone@some.com">someone@some.com</a>

Encrypted that would be:


<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;%73%6f%6d%65%6f%6e%65%40%73%6f%6d%65%2e%63%6f%6d">&#115;&#111;&#109;&#101;&#111;&#110;&#101;&#64;&#115;&#111;&#109;&#101;&#46;&#99;&#111;&#109;</a>

The way to get that would be to follow the same steps as shown in my previous post, then reset the form with the 'Reset Form' button. Then paste:

someone@some.com

into the Encrypt/Decrypt - enter email subject below (ascii characters/HTML decimal codes) field. Hit Encrypt/Decrypt and then copy that result right back from the Encrypt/Decrypt - enter email subject below (ascii characters/HTML decimal codes) field, not from the Full mailto Statement field. and place that part:


<a href="mailto:someone@some.com">HERE</a>