F
Felipe
In the HTML portion of an ASPX page, I have the following:
<INPUT TYPE=TEXT SIZE=2 NAME=VSpace onchange="Img_Preview()"
ONKEYPRESS="event.returnValue=IsDigit();" style="width:80px;" ID="VSpace">
Note that the <INPUT> control calls Img_Preview().
Img_Preview, amongst other things, executes this next line:
var VSpace = document.getElementById("VSpace");
When the value of VSpace is subsequently check, it is "undefined":
alert("VSpace.value=[" + VSpace2.value + "]"); // When this line is
executed, the word 'undefined' appears inside the brackets. Why?
The confusing part is that it all works in another page (same machine)... I
have studied the two pages and have not been able to identify the relevant
differences.
Any help is greatly appreciated!
<INPUT TYPE=TEXT SIZE=2 NAME=VSpace onchange="Img_Preview()"
ONKEYPRESS="event.returnValue=IsDigit();" style="width:80px;" ID="VSpace">
Note that the <INPUT> control calls Img_Preview().
Img_Preview, amongst other things, executes this next line:
var VSpace = document.getElementById("VSpace");
When the value of VSpace is subsequently check, it is "undefined":
alert("VSpace.value=[" + VSpace2.value + "]"); // When this line is
executed, the word 'undefined' appears inside the brackets. Why?
The confusing part is that it all works in another page (same machine)... I
have studied the two pages and have not been able to identify the relevant
differences.
Any help is greatly appreciated!