Call VB Script's function

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Please, could anyone tell me, how can I call directly the function in vb script after I registered it with RegisterClientScriptBlock?

thanks

Ma
 
If your function name is called myFunction and accepts a parameter myVar
you would use the below code, the returned value is assigned to
returnedValue

<script language=vbscript>
Dim returnedValue
returnedValue = myFunction("valueofmyVar")
</script>

Matt

Max said:
Please, could anyone tell me, how can I call directly the function in
vb script after I registered it with RegisterClientScriptBlock?
 
Client script blocks can only be called on the client side. You can
register the script as a startup script if you want it to be executed
when the page loads.
/Hugo
 
Back
Top