私がやろうとしているのは、fancybox iframeのサイズを変更することで、次のように呼び出すことで成功したと思いました。
parent.jQuery('#fancybox-inner').css({'height': '450px'});
parent.jQuery('#fancybox-wrap').css({'height': '550px'});
しかし、これをhttpsで機能するステージ領域にデプロイすると、このソリューションは機能せず、httpsの部分に関係していると思います。私はこれをグーグルで検索しようとしましたが、適切な解決策が見つかりませんでした。私を助けてください、そして私がJS初心者であることを思い出してください。
コード:
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
編集終了