Can't See rest of page In Opera and IE Bug

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ojsimon
    New Member
    • May 2007
    • 59

    Can't See rest of page In Opera and IE Bug

    Hi

    I am having a problem fixing a bug with my site, which affects both IE and Opera, but does not affect Safari, Firefox or any other browser that i know of.

    the affected part goes like this.

    1) The page widgetprep.html - This page creates the structure of the widget and shows the frame of google

    Code:
    <bgcolor="black">
    <div class="container2">
    <b class="rtop"><b class="r1"></b> <b class="r2"></b> <b class="r3"></b> <b class="r4"></b></b>
    <p>
    
    <table bgcolor="black" >
    
    <tr>
    <tr>
    <th><font face="Verdana, Arial" size="4" color="black">Test</font></th>
    </tr>
    <tr>
    <td bgcolor="white">
    <iframe src="http://google.com" name="frame1" width="500px" height="200px" id="frame1" scrolling="auto" frameborder="0"></iframe>
    </td>
    <tr >
    <th><font face="Verdana, Arial" size="" color="white"><a href="http://websnips.com/index.php/grab/check/" target="_blank">Get this widget</a></font> <font face="Verdana, Arial" size="4" color="white"> |<a href="http://www.websnips.com" target="_blank">Make a Widget Out of Any Site</a></font></th>
    </tr>
    </table>
    </p>
    <b class="rbottom"><b class="r4"></b> <b class="r3"></b> <b class="r2"></b> <b class="r1"></b></b>
    </div>
    2) widget.html - This page is an iframe of the previous page in js

    Code:
    document.write('<iframe allowtransparency="true" ' +
    'scrolling="no" frameborder="0" hspace="0" vspace="0" ' +
    'src="widgetprep.html"</iframe>');
    3) embed.html - This page embeds the widget using a JS SRC
    Code:
    <body bgcolor="red">
    <script src="widget.html" type="text/javascript"></script>
    Hello
    Basically the problem is when i look at the embed.html page in opera or ie i cannot see anything after the embedded widget for example the text saying 'hello' i added. Anyone got any ideas??


    Thanks
    Olie
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    You haven't closed the opening iframe tag. Although you can get away with calling the JavaScript file widget.html, I think you're better off calling it widget.js instead.

    Comment

    Working...