Does a form gets closed after form.submit()?

Posted by user281180 on Stack Overflow See other posts from Stack Overflow or by user281180
Published on 2010-05-18T09:19:37Z Indexed on 2010/05/18 9:20 UTC
Read the original article Hit count: 100

Filed under:

I have the following code:

$.ajax({
        type: "POST",
        url: '<%=Url.Action("test","pepole") %>',
        data: $("#PeopleForm").submit(),
        contentType: "application/json; charset=utf-8",
        dataType: "html",
        sucess: function() {
        },
        error: function(request, status, error) {
        $("#NotSelectedList").html("Error: " & request.responseText);
        }
    });

The PeopleForm is displayed in a dialog. After the submit, the dialog gets closed. Is that normal? I don`t want the dialog to get closed after the submit. How can I do that?

© Stack Overflow or respective owner

Related posts about asp.net-mvc-2