Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ansii

Posted on 2000-03-18
5
Medium Priority
?
365 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 150 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
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

926 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