1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Why does this work with every browser but IE???

Discussion in 'HTML & Website Design' started by Mia, Feb 26, 2005.

  1. #1
    Why the hell can't IE be standards compliant?

    The following site has a button on it that actions an email: http://clearwatersdayspamd.com/

    For some reason clicking on this in IE does not work. I have tested in FireFox, Safari, Mozilla, Netscape, and on and one.. They all work.

    I am using code that was provided by the helpful "J.D." in the following thread: http://forums.digitalpoint.com/showthread.php?t=10188

    Here is my code:

    
    <!-- Insert Customer Email Button Code -->
    				
    <a href="mailto:info@clearwatersdayspamd.com?subject=Clear Water Web Site Inquiry&amp;body=Please begin your message below:"><input type="submit" name="Submit" value="Click Here to Email Us">
    </a>
    Code (markup):
    <!-- End Insert Customer Email Button Code -->

    What the heck is IE's problem? Any ideas?
     
    Mia, Feb 26, 2005 IP
  2. expat

    expat Stranger from a far land

    Messages:
    873
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2

    As far as I know you don't need the submit stuff. the &amp; should be & and I would loose the : at the end

    <a href="">Click Here to Email Us</a>

    should work on all
    Expat
     
    expat, Feb 26, 2005 IP
  3. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Shannon is right - you have to use either a form or a link (in case of a link, you need to create a button yourself - e.g. with a div or as an image). If you want a standard button, the form is the way to go. You can also try <button> - there are some differences in how it looks and behaves in various browsers, though (especially, in Opera). Also, IE doesn't work properly if you have two submit <button>'s.

    J.D.
     
    J.D., Feb 26, 2005 IP
  4. wendydettmer

    wendydettmer Peon

    Messages:
    1,462
    Likes Received:
    70
    Best Answers:
    0
    Trophy Points:
    0
    #4
    When i click on the link in IE, it opens up a message with the subject line without a problem
     
    wendydettmer, Feb 26, 2005 IP
  5. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #5
    What browser/OS version you are using?

    J.D.
     
    J.D., Feb 26, 2005 IP
  6. Mia

    Mia R.I.P. STEVE JOBS

    Messages:
    23,694
    Likes Received:
    1,167
    Best Answers:
    0
    Trophy Points:
    440
    #6
    Yeah, I think I will just create an image. IE is retarded as usual and just will not follow standards IMHO. I could be wrong, but every other browser I have tested works just fine.

    BTW, I tried to use the FORM first, but it would not input the subject/body variables in the proper places.

    Thanx for the help again!
     
    Mia, Feb 26, 2005 IP
  7. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Using & instead of &amp; produces invalid HTML.

    J.D.
     
    J.D., Feb 26, 2005 IP
  8. Mia

    Mia R.I.P. STEVE JOBS

    Messages:
    23,694
    Likes Received:
    1,167
    Best Answers:
    0
    Trophy Points:
    440
    #8
    I tried it both ways. It still does not work. BTW, it is Dreamweaver that adds the "&amp", not me. Either way with or without it, I still have issues with IE.
     
    Mia, Feb 26, 2005 IP
  9. Mia

    Mia R.I.P. STEVE JOBS

    Messages:
    23,694
    Likes Received:
    1,167
    Best Answers:
    0
    Trophy Points:
    440
    #9
    Ok, it seems to work fine now with the "Click Here To Email Us" button as an image. Thanx again for all the assistance.
     
    Mia, Feb 26, 2005 IP
  10. J.D.

    J.D. Peon

    Messages:
    1,198
    Likes Received:
    65
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I double-checked with the HTML spec and it is perfectly valid to have <input>'s inside <a>'s.

    Form should work in all browsers. IE will warn the user, though, that a form is being submitted as an email, revealing their email address, which is Ok in your case because the button says all about it.

    J.D.
     
    J.D., Feb 26, 2005 IP
  11. Mia

    Mia R.I.P. STEVE JOBS

    Messages:
    23,694
    Likes Received:
    1,167
    Best Answers:
    0
    Trophy Points:
    440
    #11
    Let me clarify. The form worked. The trouble was some mailers garbled up the subject/body text. It did not look pretty.
     
    Mia, Feb 26, 2005 IP