after_remote_ajax
This event is triggered after a remote ajax call has been done.
data returned
The data returned in the data variable is:
- currentStep - String - id of the current step
example
$(function(){
// bind a callback to the step_shown event
$("#demoForm").bind("after_remote_ajax", function(event, data){
alert(data.currenStep);
});
});
before_remote_ajax
This event is triggered before a remote ajax call is done.
data returned
The data returned in the data variable is:
- currentStep - String - id of the current step
example
$(function(){
// bind a callback to the step_shown event
$("#demoForm").bind("after_remote_ajax", function(event, data){
alert(data.currenStep);
});
});
step_shown
This event is triggered when a step is shown. It's triggered for both back and forward navigation.
data returned
The data returned in the data variable is (See state method for further explanation on the different ):
- isBackNavigation - boolean - true if the wizard navigated back and false otherwise
- settings - Object - the current settings of the wizard (see Options)
- activatedSteps - Array - contains the activated steps of the wizard
- isLastStep - boolean - true if the current step is a submit step
- isFirstStep - boolean - true if the first step is the current step
- previousStep - String - the id of the previous step
- currentStep - String - the id of the current step
- backButton - Selector - contains the backButton
- nextButton - Selector - contains the nextButton
- steps - Selector - contains the steps of the wizard
- firstStep - String - the id of the first step
example
$(function(){
// bind a callback to the step_shown event
$("#demoForm").bind("step_shown", function(event, data){
alert(data.isBackNavigation);
});
});