Results 1 to 6 of 6

Thread: Email Riddler .innerHTML help!

  1. #1
    Join Date
    Nov 2009
    Posts
    43
    Thanks
    14
    Thanked 0 Times in 0 Posts

    Default Email Riddler .innerHTML help!

    1) Script Title: Email Riddler

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

    3) Describe problem:

    I'm using Shadowbox to create a "light box" and inside the box I have an email link using Email Riddler.
    Seems to be a conflict somewhere because everytime I try to use the Shadowbox 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.

    Does anyone know how I can fix this problem?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Nov 2009
    Posts
    43
    Thanks
    14
    Thanked 0 Times in 0 Posts

    Default

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

  4. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    Code:
    <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:

    Code:
    <a href="mailto:someone@some.com">Contact Me</a>
    But bots won't have a clue what it is.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  5. #5
    Join Date
    Nov 2009
    Posts
    43
    Thanks
    14
    Thanked 0 Times in 0 Posts

    Default

    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:
    Code:
    <a href="mailto:someone@some.com">someone@some.com</a>

  6. #6
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by pookeyblow View Post
    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:
    Code:
    <a href="mailto:someone@some.com">someone@some.com</a>
    Encrypted that would be:

    Code:
    <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:

    Code:
    <a href="mailto:someone@some.com">HERE</a>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. The Following User Says Thank You to jscheuer1 For This Useful Post:

    pookeyblow (12-03-2009)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •