Solved

ansii

Posted on 2000-03-18
5
361 Views
Last Modified: 2012-06-27
anybody know how to change ansii code to character in java script..??? and the reverse also,.,...

thank you...
0
Comment
Question by:leo_unics
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 4

Expert Comment

by:brigmar
ID: 2631592
There's ASCII and there's ANSI. There's no ANSII. Which are you referring to ?
0
 
LVL 7

Accepted Solution

by:
nettrom earned 50 total points
ID: 2631829
he's probably looking for the JavaScript 1.2 methods of the string object:

String.fromCharCode()
charCodeat()

the first has to be called as a method of the String object and will return a String based on the numerical values sent to it.  charCodeAt() is a method of any String object, and returns the Unicode/ISO-8859-1 (depends on JS version) character code for the character at a given position.

see:
http://msdn.microsoft.com/scripting/jscript/doc/jsstringcharCodeAt.htm
http://msdn.microsoft.com/scripting/jscript/doc/jsstringfromCharCode.htm
http://developer.netscape.com/docs/manuals/js/client/jsref/string.htm#1196647
http://developer.netscape.com/docs/manuals/js/client/jsref/string.htm#1225094
0
 

Author Comment

by:leo_unics
ID: 2632186
Im sorry I mean Ascii code of the character. actually i'm looking for the function of Chr() and Asc() of VBScript in JavaScript.

Thank you ...
0
 

Author Comment

by:leo_unics
ID: 2632212
Im sorry I mean Ascii code of the character. actually i'm looking for the function of Chr() and Asc() of VBScript in JavaScript.

Thank you ...
0
 
LVL 4

Expert Comment

by:brigmar
ID: 2633712
nettrom has the answer
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

615 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question