Question
JScript error : Object expected.
Hi,
Can someone please help me out here.
I am using asp javascript to develop my web page, i have the following function
defined in the head section of the page:
<head>
<script type="text/javascript">
function DisableSubGroup()
{
document.getElementById("SubGroupDD").disabled = "disabled";
}
</script>
</head>
I call the function from within my code in the following way.
<form action="CategoryListing.Mod.asp" method="post" name="SubForm" target="_self" id="SubForm">
<p>
<% if(ParentValue == String("Y"))
{
DisableSubGroup(); //Function call
}
%>
<select name="SubGroupDD" class="DefaultShortBox" id="SubGroupList" onchange="SubForm.submit()"
option selected= "<%Session("ActiveCategory")%>">
When i run it i get the following error every time..
Error Type:
Microsoft JScript runtime (0x800A138F)
Object expected
/DCASuppliersDatabase/CategoryListing.Mod.asp, line 218
What does it mean?
How do i get rid of it?
Regards
fifo

Can someone please help me out here.
I am using asp javascript to develop my web page, i have the following function
defined in the head section of the page:
<head>
<script type="text/javascript">
function DisableSubGroup()
{
document.getElementById("SubGroupDD").disabled = "disabled";
}
</script>
</head>
I call the function from within my code in the following way.
<form action="CategoryListing.Mod.asp" method="post" name="SubForm" target="_self" id="SubForm">
<p>
<% if(ParentValue == String("Y"))
{
DisableSubGroup(); //Function call
}
%>
<select name="SubGroupDD" class="DefaultShortBox" id="SubGroupList" onchange="SubForm.submit()"
option selected= "<%Session("ActiveCategory")%>">
When i run it i get the following error every time..
Error Type:
Microsoft JScript runtime (0x800A138F)
Object expected
/DCASuppliersDatabase/CategoryListing.Mod.asp, line 218
What does it mean?
How do i get rid of it?
Regards
fifo
