Call VB Script's function

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
 
M

matt

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?
 
H

Hugo Wetterberg

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

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top