Php JQuery Ajax请求不起作用

Php JQuery Ajax请求不起作用,php,jquery,ajax,Php,Jquery,Ajax,我对Ajax请求有问题。我使用了很多Ajax,从来没有遇到过问题,但在这种情况下,它就是不起作用,我现在已经找了好几天了,找不到我的错误 如果您访问: 然后提交带有Agendar agora!按钮的表单 通过单击执行以下代码: $.ajax({ type : 'POST', url : 'http://186.202.184.93/vhosts/sites/wp-content/themes/Onodera_test/onodera.php', dataType : 'j

我对Ajax请求有问题。我使用了很多Ajax,从来没有遇到过问题,但在这种情况下,它就是不起作用,我现在已经找了好几天了,找不到我的错误

如果您访问: 然后提交带有Agendar agora!按钮的表单

通过单击执行以下代码:

$.ajax({
    type : 'POST',
    url : 'http://186.202.184.93/vhosts/sites/wp-content/themes/Onodera_test/onodera.php',
    dataType : 'json',
    data: {
        site : "1", 
        field : "3" 
    },
    success : function(data){
        alert("ok");
    },
    error: function() {
      alert("error");
    }
});
被调用的php页面不包含错误。但是success函数从未被调用,它总是出错

有人能快速看一下吗?

检查控制台

XMLHttpRequest cannot load http://186.202.184.93/vhosts/sites/wp-content/themes/Onodera_test/onodera.php. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://sites.ondalocal.com.br' is therefore not allowed access. 

你有没有费心检查你的ajax东西是否真的执行了?检查服务器是否有问题?是否会因为请求的状态代码而失败?在控制台选项卡中检查firefox的firebug。@kingkero-ding,ding,ding-ten points=请求的浏览器上不存在“访问控制允许源代码”标题resource@adeneo你当然可以。只有被调用的服务器需要接受它,请参阅CORS;