?
Solved

Handle Success from AJAX call

Posted on 2013-05-10
3
Medium Priority
?
381 Views
Last Modified: 2013-05-10
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
Comment
Question by:WalterRR
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 82

Accepted Solution

by:
leakim971 earned 2000 total points
ID: 39156830
$(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
 

Author Closing Comment

by:WalterRR
ID: 39156903
Thanks very much...!
0
 
LVL 82

Expert Comment

by:leakim971
ID: 39156913
you're welcome!
0

Featured Post

Create CentOS 7 Newton Packstack Running Keystone

A bug was filed against RDO for the installation of Keystone v3. This guide is designed to walk you through the configuration for using Keystone v3 with Packstack. You will accomplish this using various repos and the Answers file.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question