Can't view rest of page in IE and Opera Bug

Discussion in 'Programming' started by ojsimon, Jun 10, 2009.

  1. #1
    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.

    I believe it is something to do with the JS or the CSS?

    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

    <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>
    
    Code (markup):
    2) widget.html - This page is an iframe of the previous page in js

    
    
    document.write('<iframe allowtransparency="true" ' +
    'scrolling="no" frameborder="0" hspace="0" vspace="0" ' +
    'src="widgetprep.html"</iframe>');
    
    Code (markup):
    3) embed.html - This page embeds the widget using a JS SRC
    <body bgcolor="red">
    <script src="http://localhost:8888/websnips7/widget.php?width=250&height=300&title=Widget&id=aHR0cDovL3d3dy5iYmMuY28udWsvbG9uZG9uL25ld3Mv/156&color=black&bg=567d8c" type="text/javascript"></script>
    Hello
    Code (markup):
    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
     
    ojsimon, Jun 10, 2009 IP
  2. stOK

    stOK Active Member

    Messages:
    114
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    You need to check the script text the page http://localhost:8888/websnips7/widget.php........ returns.
    Closing > missing I believe.
    
    document.write('<iframe allowtransparency="true" ' +
    'scrolling="no" frameborder="0" hspace="0" vspace="0" ' +
    'src="widgetprep.html"[COLOR="Red"]>[/COLOR]</iframe>');
    
    Code (markup):
     
    stOK, Jun 10, 2009 IP
  3. ojsimon

    ojsimon Active Member

    Messages:
    459
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Thank you very much, very much appreciated. I feel very stupid now.

    Thanks
     
    ojsimon, Jun 10, 2009 IP