PDA

Click to See Complete Forum and Search --> : How do I call Server script from client script?


MPardo
Mar 8th, 2001, 01:45 PM
If I have some server side script:
<SCRIPT Language="VBScript" RUNAT=Server>
Function DoSomething(sText)
....some code
DoSomething = sResult
End Function
</SCRIPT>

How can I call this code from something like a button click and pass data back from the server?

<SCRIPT ID=clientEventHandlersVBS LANGUAGE=vbscript>
<!--

Sub btnTest_onclick
...What is the code to run DoSomething and return a value?
End Sub

-->
</SCRIPT>

Cander
Mar 8th, 2001, 02:33 PM
you cant.