Hi!

Thanks for all your help with validate plugin, my last questions ara
about:

#1 The way of showing a spinner or loading gif while the remote
validation is asking for data?

#2 (remote ajax call to know if user exist)The remote ajax call is
executed each time a wrote a character, can i do something to call the
remote validation only when the user is out of the input or when the
user click some kind of button next to the input field to check if
user exist?


Here is the code that im actually using:

                        <script type="text/javascript">


                                $().ready(function() {

                                        // add * to required field labels
                                        $("div.required 
label").append("&nbsp;<strong><font color=
\"#FF0000\">*</font></strong>&nbsp;");

                                        
jQuery.validator.addMethod("specialAlphaNumeric",
function( value, element ) {
                                                var result = 
this.optional(element) || value.length >= 2 && /
^([A-Z0-9áéíóúüçìñ.,\'_\- ]+)$/i.test(value);
                                                return result;
                                        }, "Puede contener espacios, tener al 
menos dos y cualquiera de
los siguientes carácteres: [a-z][0-9][áéíóúüçìñ.,\'_-]");

                                        
jQuery.validator.addMethod("alphaNumeric", function( value,
element ) {
                                                var result = 
this.optional(element) || value.length >= 2 && /^[A-
Z]([A-Z0-9]+)$/i.test(value);
                                                return result;
                                        }, "Debe empezar con una letra, tener 
al menos dos y cualquiera
de los siguientes carácteres: [a-z][0-9]");

                                        $("#UserRegisterForm").validate({


                                        });

                                });

                        </script>

Reply via email to