Home > DeveloperSection > Forums > auto close ajax model poup
benjamin richards
benjamin richards

Total Post:4

Posted on    February-11-2013 1:43 AM

 JQuery JQuery 

 1 Reply(s)
 1256  View(s)
Rate this:

Hi Expert!

I have used AJAX Model popup, that work perfectly, but I want to close model popup auto when model post successfully.

AJAX Model popup code as below

<script type="text/javascript">
        $(document).ready(function () {
            $.ajaxSetup({ cache: false });
            $("#openDialog").live("click", function (e) {
                var url = $(this).attr('href');
                    title: 'Download',
                    autoOpen: false,
                    resizable: false,
                    height: 250,
                    width: 400,
                    show: { effect: 'drop', direction: "up" },
                    modal: true,
                    draggable: true,
                    open: function (event, ui) {
                    close: function (event, ui) {
                return false;

 Thanks in advance



Total Post:604

Posted on    February-11-2013 6:50 AM

Hi Benjamin!

You can try below line of code for closing Ajax model popup (according your model popup code)

<script type="text/javascript"> 
 $(document).ready(function () 
 $('#form_id').submit(function () 

Don't want to miss updates? Please click the below button!

Follow MindStick