$.ajax({ url: url, type: "POST", dataType: "json", data: data, success: funtion1, error: function2 });