FormCheck

38 views
Skip to first unread message

Adrian Jones

unread,
Jun 6, 2012, 4:13:51 PM6/6/12
to mootool...@googlegroups.com
Hi Guys
I am quite new to mootools and after days of searching for a decent validation script for my registration form, I came across formcheck by mootools.
Now, I have downloaded it, as well as core.js and more.js and done the following:
Put these in my <head> tags
<link rel="stylesheet" href="http://www.mysiteurl.net/wp-content/themes/pcc/js/formcheck.css" type="text/css" media="screen" />
<script type="text/javascript" src="http://www.mysiteurl.net/wp-content/themes/pcc/js/core.js"></script>
<script type="text/javascript" src="http://www.mysiteurl.net/wp-content/themes/pcc/js/more.js"></script>
<script type="text/javascript" src="http://www.mysiteurl.net/wp-content/themes/pcc/js/en.js"></script>
<script type="text/javascript" src="http://www.mysiteurl.net/wp-content/themes/pcc/js/formcheck.js"></script>

Have put this just above my form in the body (locumregister is the id of my form):
<script type="text/javascript">
    window.addEvent('domready', function(){
        new FormCheck('locumregister');
    });
</script>

And finally have added these in to all my required input tags:
class="validate['required']"

And guess what, nothing happens.
Any advice? thanks.
Adey

Sanford Whiteman

unread,
Jun 6, 2012, 6:46:34 PM6/6/12
to Adrian Jones
FormCheck is not actively maintained, AFAIK (it has its own list,
too).

I would suggest Moo's native Form.Validator:
http://mootools.net/docs/more/Forms/Form.Validator

If you don't want to change over right away, if you could put up your
sample FormCheck code in a jsFiddle, it's more likely that someone
will try to fix it for you, but my 2¢ is that you shouldn't roll out
FC right now if you want to, for example, have something that will
work with current and future Moo.

-- Sandy

Reply all
Reply to author
Forward
0 new messages