var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); xmlhttp.open("get","http://10.10.1.47:81/Check.aspx?id1=" + crmForm.all.new_taxnumber.DataValue + "&id2=" + crmForm.all.websiteurl.DataValue + "&id3=" + crmForm.all.parentaccountid.DataValue + "&id4=3&id5=" + crmForm.ObjectId , false); xmlhttp.send(); if (xmlhttp.responseText == '1') { alert("Bu firma kayıtlarda mevcut..."); event.returnValue = false; } var CRM_FORM_TYPE_CREATE = 1; var CRM_FORM_TYPE_UPDATE = 2; switch (crmForm.FormType) { case CRM_FORM_TYPE_UPDATE: if (crmForm.name.IsDirty || crmForm.all.new_accountfullname.IsDirty || crmForm.all.new_TaxOffice.IsDirty || crmForm.all.new_TaxNumber.IsDirty || crmForm.fax.IsDirty || crmForm.emailaddress1.IsDirty || crmForm.telephone1.IsDirty || crmForm.telephone2.IsDirty || crmForm.all.new_segment.IsDirty || crmForm.statuscode.IsDirty || crmForm.primarycontactid.IsDirty) { xmlhttp.open("get","http://10.10.1.47:81/Entegration.aspx?Type=1&accountid=" + crmForm.ObjectId, false); xmlhttp.send(); } break; }