【问题标题】:jquery ajax call fails on facebookjquery ajax调用在facebook上失败
【发布时间】:2013-07-25 21:49:50
【问题描述】:
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.min.js"></script>
<script type="text/javascript">
    function postolayi(){
        $.ajax({
            type: 'POST',
            url: 'yorum_gonder.php',
            data: $('#form1').serialize(),
            success: function(cevap){
                $("#sonuc").html(cevap)
            }
        })
    }
</script>
<form id="form1">
    <label for="textfield">Name</label>
    <input id="textfield" type="text" name="ad" />
    <input onclick="postolayi();" type="button" />
</form>

为什么这段代码不能在 Facebook 应用上运行?请帮忙

【问题讨论】:

    标签: javascript html facebook web-applications


    【解决方案1】:

    必须通过 ssl / https,尝试更改 jquery-link: http://code.jquery.com/jquery-1.7.min.jshttps://code.jquery.com/jquery-1.7.min.js

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-25
      • 1970-01-01
      • 2012-04-14
      • 2019-03-31
      相关资源
      最近更新 更多