Feb 012011
 

Here is my ASCII Code generator that I created: ASCII CODE GENERATOR.

MailTo.Link.Using.JavaScript.html

Encrypt.Email.Address.html

Some Mathematics characters are part of the Unicode character set, so you need to declare that in the head of your documents:

<meta http-equiv=”content-type” content=”text/html;charset=utf-8″ />

Display Friendly Code Numerical Code Hex Code Description
  &#8722; &#x2212; Minus Sign
+ + &#43; &#x2B; Plus Sign
± &plusmn; &#177; &#xB1; Plus or Minus Sign
× &times; &#215; &#xD7; Multiplication Sign
÷ &divide; &#247; &#xF7; Division Sign
% % &#37; &#x25; Percent Sign
  &#137; &#x2030; Per Million Sign
= = &#61; &#x3D; Equal Sign
  &#8800; &#x2260; Not Equal To Sign
  &#8776; &#x2248; Approximately Equal Sign
  &#8801; &#x2261; Identical To Sign
< &lt; &#60; &#x3C; Less Than Sign
> &gt; &#62; &#x3E; Greater Than Sign
  &#8804; &#x2264; Less Than or Equal To Sign
  &#8805; &#x2265; Greater Than or Equal To Sign
  &#8734; &#x221E; Infinity Sign
  &#8539; &#x215B; One Eighth Fraction
¼ &frac14; &#188; &#xBC; One Quarter Fraction
  &#8540; &#x215C; Three Eighths Fraction
½ &frac12; &#189; &#xBD; One Half Fraction
  &#8541; &#x215D; Five Eighths Fraction
¾ &frac34; &#190; &#xBE; Three Quarters Fraction
  &#8542; &#x215E; Seven Eighths Fraction
  &#8747; &#x222B; Integral Sign
  &#8706; &#x2202; Partial Differential Sign
  &#8710; &#x2206; Increment Sign
  &#8719; &#x220F; N-ary Product Sign
  &#8721; &#x2211; N-ary Sum Sign
  &#8730; &#x221A; Square Root Sign
  &#8735; &#x221F; Right Angle Sign
  &#8745; &#x2229; Intersection Sign
  &#8729; &#x2219; Bullet Operator
ƒ   &#131; &#x83; Function Sign
  &#8260; &#x2044; Fraction Slash
Sep 142010
 

This creates a javascript function which adds a custom mailto to an href or other object like image or DIV. When clicked it will add custom VARS to the BODY of the email. This is cool when you dont want to use a server side FORM to do this. It also lets the user use their email client of choice.

You could add this to an error page for instance, especially for an internal webapp. For public, you might wanna do this another way. My criteria required for me to do this with a non SS solution and also use the clients mail client of choice. Found online at (http://www.webmasterworld.com/javascript/3290040.htm).

Tested in IE6 and FF2. Works fine when going to Outlook 2003.

 JavaScript.Email.Function.txt

<script type=”text/javascript”>
function emailForm(){

var daReferrer = document.referrer;
var email = “yours@email.com”;
var errorMsg = “here here here is the error error error error”;
var subject = “Exception Error”;
var body_message = “%0D%0D%0D%0DThank you “+name+” for submitting this error to us. Please tell us in the space above, what you were doing when the error occurred.%0D%0DReferring Page: “+daReferrer+” %0D%0DException Error Message:%0D——————————————-%0D”+errorMsg;

var mailto_link = ‘mailto:’+email+’?subject=’+subject+’&body=’+body_message;

win = window.open(mailto_link,’emailWindow’);
if (win && win.open &&!win.closed) win.close();
}
</script>

<div style=”border:2px solid black;padding:10px;”>
Please <a href=”#” onclick=”emailForm();”>Email Support</a>
</div>