Hi, I have a number of form sections which a user progresses through. Each one is handled via AJAX, and on success, the next form is loaded via AJAX. I now have a situation where on a couple of sections I want to show a dialog box once the form has been successfully processed via AJAX. The process would be the user fills out the form, clicks submit, jquery uses AJAX to validate that the form was processed ok, then, before loading the next form, I want to trigger a dialog box (e.g thanks for signing up) which allows the user the option to read the content then to click a button/link to continue with the next part of the form. I'm not sure the best way to go about this, here is how my code works at the moment:
Can anyone suggest a good way of handling this type of thing, given the way I'm doing things below.
$(".form_container form").validationEngine({
ajaxSubmit: true,
ajaxSubmitFile: $('.form_container form').attr('action'),
success: function(){
var href = $('input.next').attr("rel"); //use rel to store next url to be loaded
hash = href.replace(/^.*#/, '');
$.historyLoad(hash); //loads next section via ajax
},
failure..etc