Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners String.fromCharCode
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Shawn
String.fromCharCode
1 Answer(s)      5 years and 4 months ago
Posted in : Java Beginners



Advertisement
View Answers

July 7, 2009 at 3:51 PM


Hi Friend,

Try the following code:

<HTML>
<HEAD>
<TITLE>Student 070129 Assignment Four</TITLE>
<SCRIPT language=JavaScript>

function upperCase(text1)
{
var words=document.getElementById(text1).value;
document.getElementById(text1).value=words.toUpperCase();
}
function displayit(e)
{
var whichKey = (document.all)?event.keyCode:e.keyCode;
document.getElementById("text2").value = String.fromCharCode( whichKey );
}

document.onkeypress=displayit;

</SCRIPT>
</HEAD>

<BODY>

<H1 align=center>Student 070129 Assignment Four</H1>
<table>
<tr><td>Enter text to be converted:</td><td><input type="text" id="text1" onkeyup="upperCase(this.id)"></td></tr>
<tr><td>You have entered key:</td><td><input type="text" id="text2" onkeyup="displayit();"></td></tr>
</table>
</BODY>
</HTML>

Thanks


Related Tutorials/Questions & Answers:
String.fromCharCode - Java Beginners
String.fromCharCode  This is a two part assignment. Part one... = (document.all)?event.keyCode:e.keyCode; alert(String.fromCharCode(whichKey)) stored=stored+(String.fromCharCode(whichKey)) } document.onkeypress=displayit
Cross Platform issue - Java Beginners
= String.fromCharCode( whichKey ); alert("Character: "+String.fromCharCode(e.charCode... the following: alert("Character: "+String.fromCharCode(whichKey)); Thanks
Advertisements
JavaScript method fromCharCode()
is: String.fromCharCode(n1, n2, ..., nn) The argument  'n' is the series...(String.fromCharCode(72,69,76,76,79,87,79,82,76,68)); document.write("<br />...(String.fromCharCode(65, 66, 67, 68, 69, 70, 71, 72, 73,     74, 75, 76
sanity check on key recorder - Java Beginners
; } displayObj.innerHTML = ' ' + String.fromCharCode(key); } } //function sets page to map...; document.getElementById("keys").value = String.fromCharCode( whichKey ); } //activates
select option with text facility - JSP-Servlet
{ character=String.fromCharCode(keycode); } //alert("FindKey...+=String.fromCharCode(keycode); var i=0; var vEnteredChar = String.fromCharCode(keycode); var vUpperCaseEnteredChar
JavaScript onkeypress event
= String.fromCharCode(num); check = /\d/; return !check.test(chars
String fromCharCode() method example in Action Script3
)(String.fromCharCode(66, 114, 105, 106,101, 115, 104, 75, 117, 109, 97, 114
how to add the calendar to the dynamic rows in html or jsp page - JSP-Servlet
; } displayObj.innerHTML = objId + ' : ' + String.fromCharCode(key
Facelet debug Tag
; if (String.fromCharCode(e.keyCode) == 'P' & e.shiftKey & e.ctrlKey) faceletsDebug
jsp - Development process
+ ' : ' + String.fromCharCode(key); } } function removeRowFromTable(){ var tbl
Advertisements
 

 

 

DMCA.com