[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 400
  • Last Modified:

Handle Success from AJAX call

I would like to handle a successful return from the submit below and reload the current page. How can i best achieve this?

           

         $('#modal-confirm').click(function() {
            $(form).ajaxSubmit();
            $(form).resetForm();
            $('#myModalOne').modal('toggle');


        });

Open in new window



Thanks
0
WalterRR
Asked:
WalterRR
  • 2
1 Solution
 
leakim971PluritechnicianCommented:
$(document).ajaxSuccess(function() { // http://api.jquery.com/ajaxSuccess/
     location.realod();
})
$('#modal-confirm').click(function() {
            $(form).ajaxSubmit();
            $(form).resetForm();
            $('#myModalOne').modal('toggle');
});

Open in new window

0
 
WalterRRAuthor Commented:
Thanks very much...!
0
 
leakim971PluritechnicianCommented:
you're welcome!
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now