English 中文(简体)
Ajax Jquery 选择 B. 固定问题
原标题:Ajax Jquery Get, Post mothed issue

我正在使用:

function AuthenticateUser(alias, password) {
        //$(document).unbind( keypress );
        $("#Login").unbind("click");
        $.getJSON(RPC_URL + "?c=User&password=" + urlencode(password) + "&alias=" + alias + "&m=login&jsoncallback=?", function(data){
             CheckAuthentication(data,alias,password);
        });

    }

......

但是,我不想这样做,而是想使用POST,而不是GET。 我尝试了2 000美元,而不是2 000美元。 JSON在座,但出于某种原因,我的数据甚至没有发送。 我看到,在我的温度数据中。 温度数据没有发生。

有些人告诉我,这可能是一个跨领域的问题。 由于我向虚拟机构发送了数据。

我应该在这里做些什么。

我想就此有一个简单的解决办法。 我不能把数据保留在一个服务器上,也不能使用代理服务器。 我的一位朋友建议我看到这一点:

但我无法了解我如何利用我的问题。

Plz说,获得一些帮助确实是 n的。

Regards Zeeshan

最佳回答

适当的辛迪加是将回报类型(第4段)改为“json”,按。 The docs for .post:

var postData = { c: "User",
                 password: password,
                 alias: alias,
                 m: "login" };
$.post(RPC_URL, postData, function (data) {
    CheckAuthentication(data,alias,password);
}, "json");

不用说,员额数据是你为什么要格式化,但我希望你们会这样做。

至于交叉主人,我不知道,在你跨领域时,究竟是怎么办。 子主是ok,但可能受阻。

虽然真正铭记着把这个职位放在首位,但却无助于你们的安全。 任何携带火力的人都可以看到员额数据。 如果你在发出前重新担心安全加密密码(hash)。 如果教育、科学和技术部为你工作,而只是向社会、文化权利委员会转而工作,那么,它就没有购买任何东西(当然,你为社会、文化和体育部重新使用特殊物质,那就更有保障)。

问题回答

使用jQuery.ajax(a)替代数据,并使用高速数据。 类型(json)和类型(POST)

see... JQUERY Ref

就交叉领域而言,你的最佳要点是将其全部放在同一领域(不同领域)和制定文件。 领域=“cl”

Can you set them up like this? betavirtual.cloud.com and virtual.cloud.com





相关问题
ajax login using httpRequest?

I am trying to develop my login script to give feedback to the user if the login is valid or not. Basically if it isn t correct a div box will show saying its wrong, if its correct it will show its ...

Virtual Tour using sketch up, ajax, flash technologies

I want to know if there are existing technology that make your 3d models in sketch into virtual tours, using either Ajax or Flash for web presentation. If there s none, which will be a good approach ...

How can i update div continuously

I have asp.net application where i have a div which showing the value from other site. The value of that site is changing continuously. I want that my div will automatically update in some interval ...

热门标签