-1

jqueryを使用してサーバーからサーバーの応答を取得していません.しかし、サーバー側から確認すると、サーバー側の男が応答を取得します.パラメーターで同じ値を送信していますが、応答が得られませんか?

私を助けてくれませんか?この画像はサーバーパーソンチェック時のものです。応答を得ています。

しかし

http://jsfiddle.net/ravi1989/LsKbJ/4/

$(document).ready(function () {
        //event handler for submit button
        $("#btnSubmit").click(function () {
            //collect userName and password entered by users
            var userName = $("#username").val();
            var password = $("#password").val();

            //call the authenticate function
            authenticate(userName, password);
        });
    });

    //authenticate function to make ajax call
    function authenticate(userName, password) {
       $.ajax
    ({
        type: "POST",
        //the url where you want to sent the userName and password to
       url: "http://dd.c-dd.de/cc/REST/Login",
        type: "POST",
        dataType: 'json',
        async: false,
        crossDomain: true,
        //json object to sent to the authentication url
        data: {Application:"61136208-742B-44E4-B00D-C32ED26775A3",
        Device:"null",
        LoginKind:"0", Password: "1",Username:"qus"},
        success: function (t) {
        alert(t+"df")
        },
        error:function(data){alert(data+"dfdfd")}
    })
    }
4

1 に答える 1

0

XMLHttpRequest はhttp://isuite.c-entron.de/CentronService/REST/Loginを読み込めません。オリジンhttp://fiddle.jshell.netは Access-Control-Allow-Origin で許可されていません。

Cross Origin Policy は、異なるドメイン名への接続を制限します

于 2013-10-01T11:09:55.313 に答える