2013-05-05 2 views
2

내 웹 사이트의 게임 섹션으로 이동하면, 버튼이 완벽하게 작동 : 나는 안전한 SSL 연결을 통해 페이지로 이동하면 http://sharepanel.net/games/자바 스크립트 버튼은 HTTPS 연결 작동하지 않습니다

, 버튼이 돈 ' 무엇이든 할 수 있습니다 : https://sharepanel.net/games/

나는 뭔가를 놓친가요?

이 버튼의 자바 스크립트 코드 : 난 그냥 할 URL을 내 웹 사이트에 모든 jQuery를 파일을 저장하고 대체하여이 문제를 해결

모든 도움들에 대한

<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> 
+0

아마 동일 출처 정책은, 그러나 그것은 jQuery.load'에 따라()'. 대신에'load ("// path /"+ page, ...)를 사용해 보셨나요? – Zeta

+1

내 생각 엔 당신이 HTTP 대 https를 통해 jquery를 소싱하고 브라우저가 당신을 내버려 두지 않는다는 것입니다. 어떤 경우에 콘솔 출력은 무엇입니까 – technosaurus

+0

내가 왜 생각하는지 ... Heres 콘솔 출력 : [blocked] https://sharepanel.net/games/의 페이지가 http : //code.jquery의 안전하지 않은 콘텐츠를 실행했습니다. .com/ui/1.10.3/themes/smoothness/jquery-ui.css. sharepanel.net:5 [blocked] https://sharepanel.net/games/의 페이지가 http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min의 안전하지 않은 콘텐츠를 실행했습니다. .js. sharepanel.net:1 [blocked] https://sharepanel.net/games/의 페이지가 http://code.jquery.com/ui/1.10.3/jquery-ui.js의 안전하지 않은 콘텐츠를 실행했습니다. sharepanel.net:1 잡히지 않은 ReferenceError : $가 정의되지 않았습니다. sharepanel.net:22 –

답변

1

감사합니다, 내 웹 서버의 URL에 jQuery 코드.

감사 Hrach

관련 문제