|
-
July 29th, 2003, 02:02 PM
#1
Client Side scripting
Hello! I am fairly new to .NET. I am doing some client side scripting with VB script to validate user input (OnBlur). My problem is if close the page the validation script runs. I know back in VB6 I used to use somthing like If Not ActiveControl Is Text1.... then put in my code . This would keep the code from running if the user wanted to exit. Anyway to do this in my scripting code. How do I stop the code from running if the user wants out. Suggestion appreciated.
-
July 29th, 2003, 09:47 PM
#2
You might wanna explain a little of on what type of project is this. ASP.NET? Windows App?
-Cool Bizs
-
July 30th, 2003, 07:50 AM
#3
ASP.NET- I inherited a project which is mostly complete except for some user validations. I'm not familiar with Java scripting so I wanted to use vb script.
-
July 30th, 2003, 09:07 PM
#4
Which event that you use to trigger the validation?
-Cool Bizs
-
August 5th, 2003, 05:26 AM
#5
OnBlur, however, I am open for suggestions.
-
August 5th, 2003, 06:18 AM
#6
There are few other events that you can try out. The common one is not to validte the input until the submit button is clicked on. This way, user can fill up the form without any interruption and validation is down right when they click on the submit button.
Another one is to use the event that indicates the value of the control has changed. For example, ONCHANGE(), which is triggered only if user changes the value of the control.
Good Luck,
-Cool Bizs
-
August 6th, 2003, 05:36 AM
#7
Thanks Coolbiz! I'll give it a try.
Cubbie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|