Solved

ansii

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
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 …
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…

813 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now