G Guest Apr 6, 2004 #1 Please, could anyone tell me, how can I call directly the function in vb script after I registered it with RegisterClientScriptBlock? thanks Ma
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 Apr 6, 2004 #2 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 Click to expand... vb script after I registered it with RegisterClientScriptBlock?
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 Click to expand... vb script after I registered it with RegisterClientScriptBlock?
H Hugo Wetterberg Apr 6, 2004 #3 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
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