Solved

ansii

Posted on 2000-03-18
5
359 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
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Add shadow behind div 5 25
Load data upon clicking a button 8 35
How to refresh a page from a sub domain in ajax ? 34 26
Visual Studio npm 1 12
This article shows how to create and access 2-dimensional arrays in JavaScript.  It includes a tutorial in case you are just trying to "get your head wrapped around" the concept and we'll also look at some useful tips for more advanced programmers. …
The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
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…

830 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