I have an include file called SectionII.vbs which contains a sub called optTypeOfScreen_SetVisibility.
Here is the code:
<SCRIPT language="VBSCRIPT">
Sub optTypeOfScreen_SetVisibility(strFacilityType)
If strFacilityType="T" then
if Document.Forms(0).htxtTypeOfScreen.Value="M" then
getElementById("divFacilityDefinedFields"
.Style.Visibility="Hidden"
End if
if Document.Forms(0).htxtTypeOfScreen.Value="B" then
getElementById("divFacilityDefinedFields"
.Style.Visibility="Visible"
end if
else
getElementById("divFacilityDefinedFields"
.Style.Visibility="Visible" end if
End Sub
</SCRIPT>
On the asp, I have the following
<!--#include file="SectionII.vbs"-->
.
.
.
.
Response.Write "<DIV ID=""divFacilityDefinedFields"" Style=""visibility:Hidden"" Width=" & SRFORM_TABLE_SPAN_WIDTH &">"
I am getting -- type mismatch:"getElementById"
What is wrong?? Thanks.
Here is the code:
<SCRIPT language="VBSCRIPT">
Sub optTypeOfScreen_SetVisibility(strFacilityType)
If strFacilityType="T" then
if Document.Forms(0).htxtTypeOfScreen.Value="M" then
getElementById("divFacilityDefinedFields"
End if
if Document.Forms(0).htxtTypeOfScreen.Value="B" then
getElementById("divFacilityDefinedFields"
end if
else
getElementById("divFacilityDefinedFields"
End Sub
</SCRIPT>
On the asp, I have the following
<!--#include file="SectionII.vbs"-->
.
.
.
.
Response.Write "<DIV ID=""divFacilityDefinedFields"" Style=""visibility:Hidden"" Width=" & SRFORM_TABLE_SPAN_WIDTH &">"
I am getting -- type mismatch:"getElementById"
What is wrong?? Thanks.