sri
05-02-2003, 09:24 PM
I am trying to validate field but i could not .
My validation is when I go from one field to other it should validate the next two fields . my code is below , Any one can help me please . When the status field is Active (A) the effdate and termdate should be disabled ,For inactive status it shold be activated .
<td valign=top>
<select ID="SelectStatus" onblur="validateStatus(this)" size="1" >
<OPTION Value="A" <%If oRS.Fields("File_Status") = "A" Then Response.Write "Selected"%>>Active</OPTION>
<OPTION Value="N" <%If oRS.Fields("File_Status") = "N" Then Response.Write "Selected"%>>Inactive</OPTION>
</SELECT>
</td>
my validation is this
function validateStatus() {
if (pField.value == "A") {
EffButton.disabled = true;
TermButton.disabled = true;
EffDate.disabled = true;
TermDate.disabled = true;
}
else {
EffButton.disabled = false;
TermButton.disabled = false;
EffDate.disabled = false;
TermDate.disabled = false;
}
}
when I try to validate ,I am getting remote script error ,page involed does not support remote scripting .
My validation is when I go from one field to other it should validate the next two fields . my code is below , Any one can help me please . When the status field is Active (A) the effdate and termdate should be disabled ,For inactive status it shold be activated .
<td valign=top>
<select ID="SelectStatus" onblur="validateStatus(this)" size="1" >
<OPTION Value="A" <%If oRS.Fields("File_Status") = "A" Then Response.Write "Selected"%>>Active</OPTION>
<OPTION Value="N" <%If oRS.Fields("File_Status") = "N" Then Response.Write "Selected"%>>Inactive</OPTION>
</SELECT>
</td>
my validation is this
function validateStatus() {
if (pField.value == "A") {
EffButton.disabled = true;
TermButton.disabled = true;
EffDate.disabled = true;
TermDate.disabled = true;
}
else {
EffButton.disabled = false;
TermButton.disabled = false;
EffDate.disabled = false;
TermDate.disabled = false;
}
}
when I try to validate ,I am getting remote script error ,page involed does not support remote scripting .