|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
Hi all I'm having a problem with my form validation in my asp page
The page is attached in the form of a text document. As you can see I am very new to both javascript and ASP and most of my code comes from other sites. the function "valbutton(thisform)" when the delete button is clicked. The script will return the alert box to say that the radio button is not checked. However if the button is checked and the button is clicked nothing happens the function does not allow the asp to continue. Without the validation the asp will work when the radiobutton is checked Help anybody Please Didge |
|
#2
|
||||
|
||||
|
A good way to test if your Javascript function is correctly being called, is to place an "alert("got here")" statement at the top of the function. That way you'll know where you're getting to.
Also, you should not place the form.submit line in your ValButton func, as that is what will happen anyway, if a "true" value is returned. Make your onsubmit call look like this: onsubmit="return ValButton()" Then, either return true for false only, from your JS func. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > ASP Form validation |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|