Thanks Jörn But which of those methods is mapped to a class, and how ?
The example at the top of the page uses class="required email". Could I use a class of "min(12)" for instance. Presumably not. So would it be a good assumption that all methods that do not have arguments are represented as classes ? required email url date dateISO dateDE number numberDE digits creditcard and the rest aren't ? Andrew On Jul 16, 6:49 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > All available validation methods are listed > here:http://docs.jquery.com/Plugins/Validation#List_of_built-in_Validation... > > Jörn > > > > On Wed, Jul 16, 2008 at 6:47 PM, Andiih <[EMAIL PROTECTED]> wrote: > > > Fantastic - I'd guessed my way into getting it working (using > > submitHandler with no arguments) but hadn't realized that > > submitHandler can pass the form. I can make the handler much more > > generic. Thanks for that. > > > What are the default classes that cause validation ? > > > Andrew > > > On Jul 16, 2:13 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> > > wrote: > >> Put the ajaxSubmit stuff into the submitHandler-callback, here is an > >> example:http://jquery.bassistance.de/validate/demo/ajaxSubmit-intergration-de... > > >> Jörn > > >> On Wed, Jul 16, 2008 at 11:29 AM, Andiih <[EMAIL PROTECTED]> wrote: > > >> > The behaviour I have is that the form is correctly validated, but > >> > submits > > >> > $('#editjobsform').submit(function() {dosavejob(); > >> > return > >> > false; }); > >> > //other stuff here > >> > $('#editjobsform').validate( > >> > { rules: {blah:"blah" }, > >> > messages: { blah: "blah"} } > >> > ); > >> > //other stuff here > >> > function dosavejob() { > >> > $('#editjobsform').ajaxSubmit({ // editjobsform > >> > action="/srv/ > >> > coms2.asmx/getJobs" > >> > beforeSubmit: ShowBusy, > >> > success: DoneSaveJob, > >> > dataType: 'xml', > >> > error: function(XMLHttpRequest, > >> > textStatus, errorThrown) > >> > {NotFound(); ClearBusy();} > >> > }); > >> > return false; > >> > } > > >> > I've tried changing the order of the .submit and .ajaxSubmit but to no > >> > avail. Chaining them loses the .ajaxSubmit behaviour and I ended up > >> > looking the xml returned by my web service. > > >> > The documentation mentions submitHandler which might do the trick, but > >> > isn't docuemented in the API documentation section. > > >> > Speaking of which, there appear to be some classes which cause > >> > validation to occur ('required' 'url' 'date') but again these are not > >> > documented: or am I missing something ? [other than reading the source > >> > code] > > >> > TIA > > >> > Andrew- Hide quoted text - > > >> - Show quoted text -- Hide quoted text - > > - Show quoted text -