triina / FunForFisherman

1 stars 0 forks source link

Validation #7

Closed Nonse closed 10 years ago

Nonse commented 10 years ago

Registration works ok, but I can't attach validation to the fields (check email format etc). I suppose, there's something with jquery, because I checked the rest and there shouldn't be errors. It also gives me troubles with submitting. Once I uncomment jquery, the submit button doesn't work. Any ideas?

eugene-doe commented 10 years ago

I guess everything's fine with jQuery. It's the remote validator that's not working, and jQuery simply doesn't let you submit until the validation completes successfully.

The problem might be that we need to retreive some data from the database for validation, and I guess that's not possible when you are not logged in...

eugene-doe commented 10 years ago

Fixed, will commit in a minute. Our validation method was supposed to take 2 parameters: string email and int fId, so when there was no fId, the method was not even called.