JavaScript按钮不能与HTTPS连接一起工作

JavaScript Buttons don't work with a HTTPS Connection

本文关键字:连接 一起 工作 HTTPS 按钮 不能 JavaScript      更新时间:2023-09-26

当我进入我的网站的游戏部分,按钮工作完美:http://sharepanel.net/games/

当我使用安全SSL连接进入页面时,按钮不做任何事情:https://sharepanel.net/games/

我错过了什么吗?

这是按钮的Javascript代码:
<script>
    function getPage(el,page){
        $(el).load(page, function(response, status, xhr) {
            if (status == "error") {
                var msg = "Error While Loading Page: ";
                $(el).html(msg + xhr.status + " - " + xhr.statusText);
            }
        });
    }
$(function(){
    $("#top10").on("click",function(){
        getPage("#main","/games/top10.php");
    });
    $("#action").on("click",function(){
        getPage("#main","action.php");
    });
    $("#adventure").on("click",function(){
        getPage("#main","adventure.php");
    });
    $("#timemanage").on("click",function(){
        getPage("#main","timemanage.php");
    });
    $("#fungames").on("click",function(){
        getPage("#main","fungames.php");
    });
    $("#newgames").on("click",function(){
        getPage("#main","newgames.php");
    });
    $("#randomgames").on("click",function(){
        getPage("#main","randomgames.php");
    });
});
</script>

感谢大家的帮助,

我只是通过保存所有的jQuery文件到我的网站,并将jQuery代码的url替换为我的web服务器上的url来解决这个问题。

谢谢Hrach