I am using the jQuery-steps plugin for my wizard type form. I want to show loading... animation until the whole wizard loads completely. There is label provided for this in the plugin. I just don't know how to enable it.
Any guess?
Edit :
Here is my code that generates wizard form
$(function () {
$("#wizard").steps({
headerTag: "h2",
bodyTag: "form",
saveState: true,
transitionEffect: "slideLeft",
onStepChanging: function stepChange(event, currentIndex, newIndex) {
if (currentIndex > newIndex) {
for(i=currentIndex;i>0;i--){
$("#sec"+i+"override").val(true);
}
return true;
}
e=event;
ci=currentIndex;
ni=newIndex;
var form = $('#wizard-p-'+currentIndex);
form.validate().settings.ignore = ":disabled,:hidden:not('.hiddenField')";
var res = form.valid();
if(res) {
var ress = form.submit();
if(check) {
return true ;
} else {
popup();
}
}
},
onFinishing: function(event, currentIndex) {
ci=currentIndex;
var form = $('#wizard-p-'+currentIndex);
form.validate().settings.ignore = ":disabled,:hidden:not('.hiddenField')";
var res = form.valid();
if(res) {
var ress = form.submit();
if(check) {
return true;
} else {
popup();
}
}
},
onFinished: function(event, currentIndex) {
<%
UserDTO user = UserUtils.getLoggedInUser();
if(user!=null){
if(user.getIsAdmin()){
%>
window.location = "<%=application.getContextPath()%>/projects";
<%
} else {
%>
window.location = "<%=application.getContextPath()%>/home";
<%
}
}
%>
$.cookie('jQu3ry_5teps_St@te_' + $( this ).data( "uid" ), '' );
}
});
});
Now the thing is it works perfectly, but while loading the whole form it shows section title first and then the form loads which is not looking good. I just want to show loading... animation until the whole form loads.