I've tried this solution, but nothing to do for me... umphf!! $().ready(function() { // validate signup form on keyup and submit $('#form_inserisci_commento').ajaxForm({ beforeSubmit: function() {$("#form_inserisci_commento").validate({ event: "keyup", rules: { nominativo: { required: true, minLength: 2 }, localita: { required: true, minLength: 2 }, messaggio: { required: true, minLength: 2 } }, messages: { nominativo: "<p class=\"error\">Inserisci il tuo Nominativo</p>", localita: "<p class=\"error\">Inserisci la Località di provenienza</p>", messaggio: "<p class=\"error\">Inserisci il tuo Messaggio</p>" } })},
target: '#successDiv', // success identifies the function to invoke when the server response // has been received; here we apply a fade-in effect to the new content success: function() { $('#inserisci_commenti').fadeOut('slow'); //$('#loadingDiv').show(); $('#successDiv').fadeIn('slow'); var t=setTimeout("$('#successDiv').fadeOut();", 10000); } }) }); The issue is that ajax call works but not the validation. I want call ajax if the form is valid... On May 22, 3:02 pm, "Richard Worth" <[EMAIL PROTECTED]> wrote: > On 5/22/07, daweb <[EMAIL PROTECTED]> wrote: > > > > > ... > > $('#successDiv').fadeIn('slow'); > > } > > }), > > > $("#form_inserisci_commento").validate({ > > ... > > I don't know if this is the problem, but the first thing that jumps out to > me is the comma ( , ) above should be a semi-colon ( ; ). > > - Richard D. Worth