fifo85 wrote:
> 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";
> }
Normally the disabled property is Boolean
document.getElementById("SubGroupDD").disabled = true;
> </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
> }
> %>
I'm not a vb/asp person, but I imagine that you can only make
the call
to the DisableSubGroup() function *after* the element is
writtten to the
document.
> <select name="SubGroupDD" class="DefaultShortBox"
id="SubGroupList"
> onchange="SubForm.submit()"
> option selected=
"<%Session("ActiveCategory")%>">
You are missing the closing ">" from the select tag, and
the opening "<"
from the option tag.
And "SubForm.submit()" should be:
"this.form.submit()"
or
"document.SubForm.submit()"
Mick
>
> 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
>
>