Hi,
I have the following javascript that is written in html. It works great.
However, I need to transfer the concept to an asp application where the form
itself is an asp page. I was wondering if that is possible to do? Thanks in
advance.
Regards
PS: In the html page the following comes intuitively(using Visual Interdev).
However, in the asp page it does not. e.g after document.formname. the
checkbox name does not show up in the asp page.
On the other hand the following comes intuitively in an html page
document.formname.checkboxname.checked
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
</HEAD>
<BODY>
<SCRIPT LANGUAGE="JavaScript"><!--
function codename() {
if(document.formname.checkboxname.checked)
{
document.formname.textname.disabled=true;
document.formname.checkboxname.disabled = true;
}
else
{
document.formname.textname.disabled=false;
document.formname.checkboxname.disabled = false;
}
}
//-->
</SCRIPT>
<form action="" method="" name="formname">
<input type="text" size="10" name="textname">
<input type="checkbox" onclick="codename()" name="checkboxname" value="OFF">
<input type="submit" value="Add">
<input type="reset" value="Clear">
</form>
</BODY>
</HTML>