开发者

Opera jQuery load causes load of whole page

Here is the part of my page with the problem.

<div id="notice_box" class="center">
  <div id="notice_cont"></div>
<script>
    function notice(more)
    {
        $('#notice_cont').load('notice.php?more_notice='+more);
    }
</script>
</div>
    <div id="notice_box_foot">
       <img src="images/notice-box-bl.png" class="left">
       <img src="images/notice-box-br.png" class="right">
     </div>
</div>

The script is supposed to fill #notice_co开发者_运维技巧nt with notice.php..... rather it fills the whole page with it.... works fine in all browsers except opera :s


Is it because your script tag is inside the div. Try moving it to after the .


Please try to validate the output of notice.php with the W3C HTML validator. The symptoms you describe might happen if the HTML you insert is not valid, e.g. with missing end tags.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜