Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 form validation using asp
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

joki
Starting Member

4 Posts

Posted - 03 November 2003 :  05:36:36  Show Profile
Hi,
I'm trying to get a form validated, but because it is in a Sub procedure it needs to be with ASP rather than JavaScript. All that it needs to be able to do is check that the value entered into the form is a number, and not a negative number. Any help will be greatly appreciated

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 03 November 2003 :  05:40:38  Show Profile
Why does being in a Sub stop you from using JavaScript?!

The UK MkIVs Forum
Go to Top of Page

joki
Starting Member

4 Posts

Posted - 03 November 2003 :  05:44:14  Show Profile
I will need to Open the Sub using asp I will need to close the asp marker, type in the JavaScript, and open them up again. I have tried this many times and it doesn't seem to work. Do you think that I can do it through JS even within a Sub?
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 03 November 2003 :  06:44:44  Show Profile
Yeah, put a javascript function in the page head or js file and add an onsubmit="return functionname(this)" to the form tag.
the function needs to return true or false depending on success

The UK MkIVs Forum
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.24 seconds. Powered By: Snitz Forums 2000 Version 3.4.07