use of onsubmit
I am studying the Wrox book "beginning ASP 3.0" (page 659). This book shows how to perform a client side data validation routine written in JavaScript. The book says JavaScript is best because it is compatible with most Browsers. Also client side is best for speed since the server is not involved. All that is fine. I simply would like to try writing a client side VBscript validation routine for my own understanding of things. I like to see what is possible just to learn about things. I am able to make JavaScript work but don't know the syntax to make client side VBScript work. Is it possible? The following works with JavaScript: <FORM ACTION = "NextPage.asp" METHOD="POST" onsubmit="return Jscript_Rtn()"> If the Jscript_Rtn() produces a Boolean false result, the <Form> tag will not tell the browser to call the "NextPage.asp", so the application user is forced to fix the errors. The validation routine must produce a True result for control to be passed to "NextPage.asp". I simply am curious if this can be achieved with VBScript.
Cmarek
__________________
Cmarek
|