$(document).ready(function(){if($('#userForm').valid()){var formData = $("#userForm").serializeArray();
$.ajax({
url:'http://www.domain.com/user/'+ $('#Id').val()+'?callback=?',
type:"POST",
data: formData,
dataType:"jsonp",
jsonpCallback:"localJsonpCallback"});});function localJsonpCallback(json){if(!json.Error){
$('#resultForm').submit();}else{
$('#loading').hide();
$('#userForm').show();
alert(json.Message);}}