Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

server side, client side scripts help!

Status
Not open for further replies.

frogggg

Programmer
Jan 17, 2002
182
US
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=&quot;clientEventHandlersJS&quot; LANGUAGE=&quot;javascript&quot; RUNAT=&quot;client&quot;>

function btnSubmit_onclick()
{
var varlocation;
varlocation=lstLocation.getText(lstLocation.selectedIndex);
document.write varlocation;
}

</script>

Thanks for any help.
 
Hi,

<script ID=&quot;clientEventHandlersJS&quot; LANGUAGE=&quot;javascript&quot; RUNAT=&quot;client&quot;>

RUNAT=&quot;client&quot; is not necessary, try without it and it should probably work. &quot;Defeat is not the worst of failures. Not to have tried is the true failure.&quot;
-George E. Woodberry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top