All Forums >> [Scripting] >> ASP >> sub procedure execution Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
I am trying to excute a sub procedure after that click of an HTML button. I have the procedure in the HEAD of the HTML document and in the onclick property of the button I call the procedure. The problem is that for some reason the procedure executes as soon as I run the script, it does not wait for the click. Can anyone help me out with this???
Not sure about executing VB functions with javascript with that whole client side - server side barrier, but I had a similar problem accessing javascript functions from a dynamically created link a few weeks ago, needed a anonymous function like:
hence put the function you want to call inside a blank function in the 'onClick' tag.. not sure if that will work for you but its a start.. good luck.