2012-06-04 26 views
0

我想要做的就是調整一個IFRAME的fancybox,我想我成功通過調用在https這個解決方案不起作用,我想它與https部分有關。我試圖谷歌這一點,但我沒有找到任何合適的解決方案。可以請幫助我,記住我是JS新手。調整大小與JS iframe的停止工作時,HTTPS

代碼:

jQuery().ready(function() { 
    jQuery('#no_user').click(function() { 
     if (jQuery(".temp_expand").css("display") == "none") { 
      jQuery(".temp_expand").slideDown(); 
       parent.jQuery('#fancybox-inner').css({'height': '450px'}); 
       parent.jQuery('#fancybox-wrap').css({'height': '550px'}); 
      } 
      else { 
       jQuery(".temp_expand").slideUp(); 
       jQuery(".temp_expand").css("display", "none");      
       parent.jQuery('#fancybox-inner').css({'height': '850px'}); 
       parent.jQuery('#fancybox-wrap').css({'height': '950px'}); 
      } 
      }).toggle(function() { 
       jQuery('#temp_no_user').text("#{messages['login']}"); 
      }, function() { 
       jQuery('#temp_no_user').text("#{messages['register']}"); 
      });   

     }); 

編輯開始

我得到一個JS錯誤:

Error: Permission denied to access property 'jQuery' 
Source File: https://stage.temp.se/login/login 
Line: 185 

編輯結束

回答