mardi 14 juillet 2015

How get on controller values of strings(splits-email of ajax-jquery)?

Image easy error is:http://ift.tt/1fHJzVH

{

$('#dialog-form').dialog({
            modal: true,
            autoOpen: false,
            width: 500,
            buttons: {
                "تایید": function (e) {
                    var ccTo = $('#ccTo').val();
                    var email = $('#email').val();
                    var reason = $('#reason').val();
                    $.ajax({
                    url:'@Url.Action("EmailInfo", "Admins")',
                    type: "POST",
                    dataType: "text",

                data: ({ ccTo: ccTo, email: email, reason: reason }),
                success: function (result) {
                    if (data != null && data.success) {
                        alert(result);




}

Aucun commentaire:

Enregistrer un commentaire