Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iframe problem with ie5

Status
Not open for further replies.

tcrosswell

IS-IT--Management
Oct 14, 2001
26
GB
I am using iframe on my site to display a page on another server. I thought that iframe was supported from ie4 upwards but when I try it on ie5 (not managed to find a machine with ie 4 on it) that iframe is NOT displayed.

My page is here the code I am using for the iframe is <iframe frameborder=0 border=0 width=100% height=100% scr=It looks fine to me but maybe someone here can spread a little light on a possible solution.

Thanks a lot to anyone who can help

Tom Crosswell
 
I &quot;may&quot; have sorted out the problem. I think the ASP page that I was loading into the iframe was too large (I thought it would add scroll bars!!) but I have altered it a bit and one machine with IE 5 on it could now see it correctly!

It anyone has IE4, IE5 or NS6 then PLEASE could you have a look for me and see if it is ok on your machine.

Thanks

Tom Crosswell
 
Depending on where I load it (on your site or in a new file on my machine) and what browser is seeing it (I have IE 5.5 and NN 4.0 and NN 6.0) I either see the IFRAME or see parts of the table (at one point all I got was the &quot;All rights reserved&quot; block of text and that's it). I think the problem is the big table.

Take a look at the number of cells in each row, they vary from row to row so the browser is probably just giving up on you. I'm guessing a Macromedia product wrote this table for you, you can go in there and take all of those shim columns out, that will make it easier (they always make it padded like crazy with extra columns and rows). Some of the empty cells can be meshed together into one big empty cell, that might help. Also remember that

<td></td>

will not render in Netscape because it has no content. Try this instead:

<td>&nbsp;</td>

Lastly, you should probably put quotes around the IFRAME src, just in case. And it won't work in Netscape anyway, come to think of it, IFRAME is only supported in IE 4.0 and up.
 
Hello Glowball
I created the layout in image ready and then have been altering it in Dreamweaver, so that might be why all the cells are a bit messed up.
I am pretty new to HTML and not exactly sure what you meant by &quot;take all of those shim columns out&quot; what ones would you recommend I remove?
I have gone through and changed the <td></td> to <td> </td> so hopefully that helped with netscape.
As for iframe support I believe that ie4 up and NS6 have support for it so that may be why your NS4 does not work.

Thanks again for your help

Tom Crosswell
 
Ahh, didn't know that, you're absolutely right about IFRAME support in NN6 (see As for the <td></td> thing, it didn't print but try

<td>& nbsp ;</td>

with the spaces taken out (it didn't print in my post, sorry about that!).

The shim columns are what Fireworks and Dreamweaver (and apparently ImageReady) put in their code. It's like if you have a table with two rows and two columns they put a tiny row on the top with a tiny, transparent shim image in it, then tiny columns on the left and right sides, and often a tiny row on the bottom. Not only is it not necessary or probably not what you intended, but it makes your page load slower.

For example, I see that you correctly set all of your margins to 0 in your body tag, but then the table puts a margin on with
Code:
<TD height=&quot;1&quot;> <IMG SRC=&quot;images/spacer.gif&quot; WIDTH=15 HEIGHT=1></TD>
It looks like this is an extra &quot;shim&quot; column that can be removed from all of the rows (there is one on the other end too). There is a lot of stuff at the bottom that can go too, looks like.

I would guess that anything with spacer.gif is probably excess fat on the page... let me know if that doesn't make sense and I'll try to help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top