All Forums >> [Scripting] >> ASP >> Passing client VBScript Variables to a Server Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Hello everyone. I have a quick (and possibly trivial question for everyone.)
I've been having trouble getting client-script variables to the server for a little intranet application I've been toying with.
Server Side and Client Side Code are both VBScript (I know that should use JavaScript but one language at a time).
Anyway...this is the code I'm playing with to learn.
<!--Here is the HTML Form that Feeds the Button above--> <form method="post" action="usertest.asp"> <input type="button" onClick=Delete() value="Delete"> </form>
Hopefully, someone will point me in the right direction Thanks
I had some help and figured it out but I'm trying to understand why the "Null" part of the Case statement doesn't work. I thought that when the page is first run on the server and the 'clientresponse' value wasn't submitted by the client that it would be assigned a default value of null. Any ideas?
Maybe I'll make a new thread for that question.
Anyway, a friend helped me out yesterday and here's what works. May it help some other frustrated soul.
<!-- HTML PART OF CODE --> <HTML> <form id="F1" method="post" name="F1"> <input type="button" onClick=Delete() value="Delete"> <input type="Hidden" Name="hdnYesNo"> </form> </HTML>