Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add js validation form #88

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mikeSimonson
Copy link
Contributor

Hi,

It's kind of a proof of concept. I have added js validation to the register form.
It's nice and everything, you get a message if your username is already taken and so on.
The goal is check that you agree with that way of doing that kind of stuff and if not to make it
compliant with your wish.
It's not perfect but for now it works kinda nicely.
Hope you will like it.

Cheers

mike.simonson@gmail.com and others added 5 commits December 20, 2011 10:58
Even if user is logged as root or uploader.
I plead guilty, it's for IE not to fall into quirks mode.
Otherwhise it's not a problem for any other browser.
The goal is not to send the form if the username is already taken.
This is checked by a ajax call.
To do that I have used the jquery validation engine
and the jquery i18n plugin to internationalize it.
It's now easy to add validation of any kind to other
form and to translate other part in js.

The validation is divided in different part.
All the validations that are written above the fields
are enforced like only number & letter or min
6 char.
But there is also an ajax call that's made to make
sure the username is not already taken.
If the form fail to comply with any of those validation
it won't be send and a prompt will show with a
message explaining the problem.
@mikeSimonson
Copy link
Contributor Author

sorry it's a bit late because I made a pull request to myself instead of you.

@mikeSimonson
Copy link
Contributor Author

Issue #68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants