Quote:
Originally Posted by Rajneesh Chellapilla
Well D and E in crements are there incase I want to because I want to make I am planning the output more than one character 3 to be exact. So for now they are just lett there. I though I eliminated them from the post my apologies.
Hello, I tried to print the values inside the quotes it is printing some value, you are not getting null values, instead u are getting some spaces. Try the below code
[HTML]<html>
<head>
<script type="text/javascript">
var c=0;
var t;
function timedCount()
{
String.fromCharCode(c);
document.getElementById('txt').value="\' "+String.fromCharCode(c)+" \'";
document.getElementById('text').value=c;
//This is the problem area every time I try if statements it doesnt work.
c = c+1;
//d=(d+1);
//e=(e+1);
t=setTimeout("timedCount()",1000);
}
function stopCount()
{
clearTimeout(t);
}
function resetC()
{
c=10;
reset();
}
</script>
<style type="text/css">
.style1 {
font-family: ;
font-size: 60px;
color: rgb(0,100,175);
background-color: #FFFFCC;
padding: 2px;
height: 80px;
width: 100px;
border: 1px solid #7F9DB9;
}
.style2 {
font-family: ;
font-size: 60px;
color: rgb(0,100,175);
background-color: #FFFFCC;
padding: 2px;
height: 80px;
width: 300px;
border: 1px solid #7F9DB9;
}
</style>
</head>
<body>
For God (the Primary Maker of the Good Place Beyond this life)
<br></br>
<form>
<input type="button" value="Start Count" onClick="timedCount()">
<input type="text" class="style1" id='txt'><br></br>
<input type="button" value="Stop count!" onClick="stopCount()">
<input type="button" value="reset" onClick="resetC()">
<input type="text" class="style2" id='text'>
</form>
<br></br>
<br></br>
<br></br>
<p>Click on the button above. The the imput will start counting throgh various
unicode characters.</p>
</body>
</html>[/HTML]
If u want to avoid those things to be displayed u can very well use some js comparison method before printing the value inside the text box. If u need more help just post it in the forum i will try to help u out
Regards
Ramanan Kalirajan.