the error is as follows:
code is as follows:
$("-sharpaddForm").form("submit", {
url: "warm_car_customer_invite_friend_create",
onSubmit: function () {
alert("erefge");
$.messager.progress({
text: ""
});
var flag = $(this).form("validate");
if (!flag) {
$.messager.progress("close");
}
return flag;
},
success: function (result) {
$.messager.progress("close");
if (result == "success") {
$.messager.alert("", "", "info");
$("-sharpdataGrid").datagrid("reload");
$("-sharpaddForm").form("clear");
$("-sharpaddView").dialog("close");
} else {
$.messager.alert("", "", "info");
$("-sharpdataGrid").datagrid("reload");
$("-sharpaddView").dialog("close");
}
}
});