Vich
07-12-2006, 02:12 PM
I'm talking Server Side scripts - executed from the client.
I want to validate user input against the database (calling a stored procedure) BEFORE submitting the page. The SP would receive a few variables and return an error code.
I'm assuming that I have to execute it from our existing "Validation" JavaScript that is executed when they click "Submit" (just like our current data validation). If there's an error, I set focus to the appropriate field. All that's already in place.
I've heard about, but never used, server side scripting. Where I set up isolated VBScripts in a special directory on the server that are available to the client.
My Question: I'm really looking for links to comprehensive writeups and examples. I did a search here but failed to find them.
Thanks loads: If I can figure this out, my life will become FAR easier.
Security is a concern, but we use a Server Side variable saying they have a valid logon, and validating that is all I'm worried about. I'm assuming they can't create new scripts and these scripts will only be for Order-Input-Data-Validation, nothing critical and no Update-Access. However; any other gotcha-tips on security would be appreciated.
My application: An ASP / VBScript (server side) / JavaScript (client side) / SQL Server (DB back end)
This web app is internet-available (not just intranet), but the users (under 2000 of our dealers) are restricted by signon validation that uses a Session Variable.
Thanks!
I want to validate user input against the database (calling a stored procedure) BEFORE submitting the page. The SP would receive a few variables and return an error code.
I'm assuming that I have to execute it from our existing "Validation" JavaScript that is executed when they click "Submit" (just like our current data validation). If there's an error, I set focus to the appropriate field. All that's already in place.
I've heard about, but never used, server side scripting. Where I set up isolated VBScripts in a special directory on the server that are available to the client.
My Question: I'm really looking for links to comprehensive writeups and examples. I did a search here but failed to find them.
Thanks loads: If I can figure this out, my life will become FAR easier.
Security is a concern, but we use a Server Side variable saying they have a valid logon, and validating that is all I'm worried about. I'm assuming they can't create new scripts and these scripts will only be for Order-Input-Data-Validation, nothing critical and no Update-Access. However; any other gotcha-tips on security would be appreciated.
My application: An ASP / VBScript (server side) / JavaScript (client side) / SQL Server (DB back end)
This web app is internet-available (not just intranet), but the users (under 2000 of our dealers) are restricted by signon validation that uses a Session Variable.
Thanks!