Joomla ไม่แสดงผลใน IE (http:///)

Template บางตัวของ Joomla เวลาเปิดด้วย browser อื่นๆ เข้าได้ แต่ถ้าเป็น IE เวลาเปิดมันจะ Redirect ไปที่ http:///
มันเกิดจาก code HTML นี้ (ยังไม่ได้เช็คในรายละเอียด)
<script language=”javascript” type=”text/javascript”>
function iFrameHeight() {
var h = 0;
if ( !document.all ) {
h = document.getElementById(‘blockrandom’).contentDocument.height;
document.getElementById(‘blockrandom’).style.height = h + 60 + ‘px’;
} else if( document.all ) {
h = document.frames(‘blockrandom’).document.body.scrollHeight;
document.all.blockrandom.style.height = h + 20 + ‘px’;
}
}
</script>
<iframe id=”blockrandom”
name=””
src=”http://”
width=”100%”
height=”200″
scrolling=”auto”
align=”top”
frameborder=”0″
class=”wrapper”>
No Iframes</iframe>
ตำแหน่งของไฟล์
./modules/mod_wrapper/tmpl/default.php
./components/com_wrapper/views/wrapper/tmpl/default.php
code นี้
<iframe <?php echo $load; ?>
id=”blockrandom”
name=”<?php echo $target ?>”
src=”<?php echo $url; ?>”
width=”<?php echo $width ?>”
height=”<?php echo $height ?>”
scrolling=”<?php echo $scroll ?>”
align=”top”
frameborder=”0″
class=”wrapper<?php echo $class ?>”>
<?php echo JText::_(‘NO_IFRAMES’); ?>
</iframe>
วิธีแก้ที่ไข (ที่ปลายเหตุ)  ก็ comment ตัว <iframe> ข้างต้นออกไปเลย  เหอ

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.