What's Form check?

Im going to go out on a limb here and say it should look something
like this:
===============

<script type="text/javascript">
    window.addEvent('domready', function(){
        new FormCheck('form_directeur_mon_ecole');
    });
</script>


On Feb 16, 1:22 pm, karim amakrane <[email protected]> wrote:
> hello
> i just download FormCheck an i need to intgrat it on my my submit
> form
> my form :
> <link rel="stylesheet" href="/js/formcheck/theme/classic/
> formcheck.css" type="text/css" media="screen" />
> <script type="text/javascript" src="/js/formcheck/lang/en.js"> </
> script>
> <script type="text/javascript" src="/js/formcheck/formcheck.js"> </
> script>
> <script type="text/javascript">
> $('form_directeur_mon_ecole').addEvent('submit', function(e) {
>         e.stop();
>         this.set('action', 'modules/ecole/update_mon_ecole.php');
>         this.set('send', {
>                 onComplete: function(response) {
>                                         if(response == 'true')
>                                                 {
>                         MochaUI.notification("Traitement effectuer
> avec succ&egrave;s");
>                                                 return false;
>                                                 }
>                                                 else
>                                                 {
>
> MochaUI.notification("Erreur : "+response);
>                                                 return false;
>                                                 }
>                 }
>         });
>         // Send the form.
>         this.send();
>
> });
>
> </script><table cellpadding="0" cellspacing="0">
> <tr>
>    <td valign="top">
> <form id="form_directeur_mon_ecole" name="form_directeur_mon_ecole"
> method="post" action="modules/ecole/update_mon_ecole.php"
> style="background-color:#FFFFFF">
> <table cellpadding="0" cellspacing="0">
>   </tr>
>   <tr>
>     <td align="left">Nom de l'&eacute;cole</td>
>     <td width="10" valign="top">:</td>
>     <td >
>       <input id="form_nom" <input class="validate['required']" />
> name="form_nom" value="Ecole d'El Jadida" size="40"  type="text" />
>       <input id="form_id_mon_ecole" name="form_id_mon_ecole"
> value="3"
> size="11"  type="hidden" />
>     </td>
>   </tr> .....
> and know where may i put the validation form normally we put on
> e.stop()
> {
>
> };
>
>  and i want to ask where may i put
> <script type="text/javascript">
>     window.addEvent('domready', function(){
>         new FormCheck('myform');
>     });
> </script>
> thanks a lot

Reply via email to