Secured Loans - Xecuter 3 Mod Chip - Dedicated Servers - Loans - 0 Credit Cards

PDA

View Full Version : Why does this work with every browser but IE???


Mia
Feb 26th 2005, 9:10 am
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>
<!-- End Insert Customer Email Button Code -->

What the heck is IE's problem? Any ideas?

expat
Feb 26th 2005, 9:26 am
Why the hell can't IE be standards compliant?

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


<!-- Insert Customer Email Button Code -->

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

What the heck is IE's problem? Any ideas?


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="mailto:info@clearwatersdayspamd.com?subject=Clear Water Web Site Inquiry&body=Please begin your message below (info@clearwatersdayspamd.com?subject=Clear Water Web Site Inquiry&body=Please begin your message below)">Click Here to Email Us</a>

should work on all
Expat

J.D.
Feb 26th 2005, 9:29 am
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.

wendydettmer
Feb 26th 2005, 10:15 am
When i click on the link in IE, it opens up a message with the subject line without a problem

J.D.
Feb 26th 2005, 11:13 am
When i click on the link in IE, it opens up a message with the subject line without a problemWhat browser/OS version you are using?

J.D.

Mia
Feb 26th 2005, 12:11 pm
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.

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!

J.D.
Feb 26th 2005, 12:13 pm
the &amp; should be &Using & instead of &amp; produces invalid HTML.

J.D.

Mia
Feb 26th 2005, 12:28 pm
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 26th 2005, 12:35 pm
Ok, it seems to work fine now with the "Click Here To Email Us" button as an image. Thanx again for all the assistance.

J.D.
Feb 26th 2005, 3:10 pm
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.I double-checked with the HTML spec and it is perfectly valid to have <input>'s inside <a>'s.

BTW, I tried to use the FORM first, but it would not input the subject/body variables in the proper places.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.

Mia
Feb 26th 2005, 3:20 pm
Let me clarify. The form worked. The trouble was some mailers garbled up the subject/body text. It did not look pretty.