Skip to content
Permalink
Browse files

* Information fichier readme

* Ajout commentaires
  • Loading branch information...
kvaillant
kvaillant committed Jan 20, 2014
1 parent cb2c57f commit f268b6f0818091b9f64e4185d39f93e807148661
Showing with 39 additions and 8 deletions.
  1. +33 −2 README.md
  2. +6 −6 js/jquery.stepsformvalidation.js
@@ -1,2 +1,33 @@
jquery-stepvalidation
=====================
jquery-stepvalidation
=====================

Simplifying developers' life

This project was born to propose a step by step Ajax form validation. The execution of each ajax request depends on the success/ outcome data/ failure of the previous request.

Configuration:
-------

Include the jQuery library and this plugin:

<script src="js/jquery.min.js"></script> <!-- jquery-1.10.1 -->
<script src="js/jquery.stepsformvalidation.js"></script>

Inicialize-it with the default parameters:

$(function(){
var stepV = $.stepValidation({}).start();
});

Or configure it as preferred:

$(function(){
$.stepValidation({

ajaxParams: [], // List ajax param for each ajax request
timeout: 0, // timeout in ms between each ajax call
breakOnFail: true, // Arret des etapes lors d'une erreur Ajax, Stop next ajax request on failure
onBeforeNextStep: function() {}, // handler before next ajax request call
onNextStep : function() {}, // Parameters = Current ajax param, current step number
onComplete : function() {} // handler for the end of process
});
@@ -40,12 +40,12 @@
// override these in your code to change the default behavior and style
$.stepValidation.defaults = {

ajaxParams: [], // List ajax param for each ajax request
timeout: 0, // timeout in ms between each ajax call
breakOnFail: true, // Arrêt des étapes lors d'une erreur Ajax
onBeforeNextStep: function() {},
onNextStep : function() {}, // Parameters = Current ajax param, current step number
onComplete : function() {}
ajaxParams: [], // List ajax param for each ajax request
timeout: 0, // timeout in ms between each ajax call
breakOnFail: true, // Arret des etapes lors d'une erreur Ajax, Stop next ajax request on failure
onBeforeNextStep: function() {}, // handler before next ajax request call
onNextStep : function() {}, // Parameters = Current ajax param, current step number
onComplete : function() {} // handler for the end of process
}

function _start(el){

0 comments on commit f268b6f

Please sign in to comment.
You can’t perform that action at this time.