I have the following code, but I can seem to get the values on the page it posts to (
store.asp).; simply by doing a request.querystring. What am i doing wrong?
$(function(){
$("#demoForm").formwizard({
formPluginEnabled: true,
validationEnabled: true,
focusFirstInput : true,
formOptions :{
success: function(data){$("#status").fadeTo(500,1,function(){ $(this).html("You are now registered!").fadeTo(5000, 0); })},
beforeSubmit: function(data){$("#data").html("data sent to the server: " + $.param(data));},
dataType: 'json',
resetForm: true
}
}
);
var remoteAjax = {}; // empty options object
$("#demoForm .step").each(function(){ // for each step in the wizard, add an option to the remoteAjax object...
remoteAjax[$(this).attr("id")] = {
url : "store.asp", // the url which stores the stuff in db for each step
dataType : 'json',
beforeSubmit: function(data){
alert($.param(data));
$("#data").html("data sent to the server: " + $.param(data))
},
success : function(responseText, statusText, xhr, $form){
alert('status: ' + statusText + '\n\nresponseText: \n' + responseText +
'\n\nThe output div should have already been updated with the responseText.');
return data; //return true to make the wizard move to the next step, false will cause the wizard to stay on the CV step (change this in store_in_database.html)
}
};
});
$("#demoForm").formwizard("option", "remoteAjax", remoteAjax); // set the remoteAjax option for the wizard