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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top