I have a listbox dtc which looks up from a recordset.
I need to get the values from the listbox client side, so I set the scripting platform of the dtc to client side.
Then I have a client side script to get the values.
I get this error:
The Runat attribute of the Script tag or Object tag can only have the value 'Server'.
Here is the script. Can anyone tell me what I am doing wrong?
<script ID="clientEventHandlersJS" LANGUAGE="javascript" RUNAT="client">
function btnSubmit_onclick()
{
var varlocation;
varlocation=lstLocation.getText(lstLocation.selectedIndex);
document.write varlocation;
}
</script>
Thanks for any help.
I need to get the values from the listbox client side, so I set the scripting platform of the dtc to client side.
Then I have a client side script to get the values.
I get this error:
The Runat attribute of the Script tag or Object tag can only have the value 'Server'.
Here is the script. Can anyone tell me what I am doing wrong?
<script ID="clientEventHandlersJS" LANGUAGE="javascript" RUNAT="client">
function btnSubmit_onclick()
{
var varlocation;
varlocation=lstLocation.getText(lstLocation.selectedIndex);
document.write varlocation;
}
</script>
Thanks for any help.