[Javascript] ASCII to Text

shawn_milochik at godivachoc.com shawn_milochik at godivachoc.com
Fri Apr 30 11:32:34 CDT 2004


                                                                           
             flavio at economisa.                                             
             com.br                                                        
             Sent by:                                                   To 
             javascript-bounce         javascript at LaTech.edu               
             s at LaTech.edu                                               cc 
                                                                           
                                                                   Subject 
             04/30/2004 01:01          [Javascript] ASCII to Text          
             PM                                                            
                                                                           
                                                                           
             Please respond to                                             
             javascript at LaTech                                             
                   .edu                                                    
                                                                           
                                                                           












Hello,

 Anybody knows how to return "A" with an input of "65" in a function (and
vice-versa) in Java Script?

Thanks in advance,

--
Flavio Gomes
flavio at economisa.com.br_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript









Here's half of the answer.  I'll look into the other half, unless
I see someone else answer you first.

Shawn

<script type="text/javascript">

   var testNum = 65;

   //number to character
   alert(String.fromCharCode(testNum));



</script>




**********************************************************************
This e-mail and any files transmitted with it may contain 
confidential information and is intended solely for use by 
the individual to whom it is addressed.  If you received
this e-mail in error, please notify the sender, do not 
disclose its contents to others and delete it from your 
system.

**********************************************************************




More information about the Javascript mailing list