View Full Version : Validation not working at all
Daryl
07-19-2009, 01:28 AM
I have created an online application form, however none of the validation works when clicking the submit button.
I have used this product before but have never had this problem before.
The page can be found here http://k9-sar.com/Application_Form.php
john293655
07-19-2009, 01:56 AM
Hey Daryl,
Have you tried removing some of the validation?
My browser shows an error on line 354 at character 3235. Missing ")"
Now, I've gone through a couple of times, even breaking each validation onto a separate line, and I don't see any missing parenthesis, so I'm wondering if you've exceeded some character limit.
Mind you - it's 4.55am here and I am a little bleary - so I'm not ruling out the fact I've missed it.
First thing I'd do would be to reduce that onsubmit chunk and see if it works.
Hope that helps.
Cheers
John
Daryl
07-19-2009, 02:05 AM
John
I have seen that error too on Error Console, however I have compared it to the validation before it and its exactly the same but doesn't throw up any errors.
Bizzare!
john293655
07-19-2009, 02:20 AM
I would try reducing the checks though, just for the hell of it.
The page validates or at least it *did* ;-)
Guess you're still working on it. I couldn't see any missing commas, misplaced commas or quotes, nothing that would cause the browser to parse the code interpreting ) as part of a text string - so you've got me.
Personally I prefer Server-Side validation because a) I can't stand js and b) I have more control over the testing. Sure, both are better - but mostly the first reason is enough for me to stay away from Client-Side. Besides. There's no guarantee JS is enabled.
Good luck with it anyway.
Cheers
John
p.s. You have a typo on your 5th checkbox. : )
Daryl
07-19-2009, 03:32 AM
I am still working on it
I have decided to start the validation all over again, doing a few at a time and then testing it - bit annoying to say the least!
I haven't got my head around using server side validation yet.
Daryl
07-19-2009, 05:04 AM
OK, the problem seems to occur when I validate more than 1 checkbox...
any ideas out there?
I have managed to get the page working by using radio buttons instead, but if anyone has an answer I would still be interested to hear it.
Ray Borduin
07-20-2009, 07:58 AM
If you put up a URL of a page that you have tried and is not working I could look at it and probably determine what is wrong.
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.