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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iframe and netscape

Status
Not open for further replies.

VBmim

Programmer
Joined
Jun 25, 2001
Messages
361
Location
BE
Hello

I have a bit of a problem. I use an iframe to display an asp page. Tested it on explorer 5.0 and it worked great! But netscape.... even the 6.2 version doesn't work! Is this possible? I have read several threads that state that iframes are recognized by netscape 6... I realy don't know what to do... is there an alternative for iframe? I have read that I could use ILayer (or something like that), does this also permit to display an asp-page?

tanks in advance

Mim
 
Code:
<form name=&quot;modellen&quot; id=&quot;modellen&quot;>
<table width=&quot;90%&quot; height=&quot;90%&quot;>
<tr><td width=&quot;50%&quot; align=right>
<iframe style=&quot;BACKGROUND-ATTACHMENT:fixed&quot; scrolling=&quot;auto&quot; id=&quot;HelmenIFrame&quot; name=&quot;helmenIFrame&quot; height=&quot;100%&quot; width=&quot;90%&quot; frameborder=&quot;0&quot; noresize src=&quot;HelmOverTest.asp?gid=<%=txtgroepId%>&amp;sgid=<%=txtSubGroepId%>&amp;mid=<%=txtMerkId%>&quot;></iframe></td>
<td width=&quot;5%&quot;><br></td>
<td width=&quot;45%&quot; align=center>
<img src=&quot;images/AirohTransparant.GIF&quot; width=&quot;200&quot; height=&quot;101&quot;>
<br><br><br>
<IMG alt=Voorbeeldje height=223  id=voorbeeld src=&quot;images/background4.jpg&quot; name=voorbeeld  style=&quot;VISIBILITY: hidden&quot; width=230  onerror=&quot;document.voorbeeld.src=NoPicture.src;document.voorbeeld.border=0&quot; bordercolor=&quot;#cc0088&quot;><br>
<div style=&quot;visibility: hidden&quot; id=uitlegHelm name=uitlegHelm>Ga met de muis over de modellen om de helm te zien</div>
<IMG height=30 id=loading name=loading src=&quot;images/loading.gif&quot; style=&quot;VISIBILITY: visible&quot; width=80>

</td></tr></table></form>

voila that's it!
I hope you can get sense out of this...
 
woeps, I forgot to mention that this code is also in an asp-page...

a little more explanation:

I have this asp-site that list a number of helmets in different colors and models (the asp-site in the iframe). In this asp I Also preload the pictures of the helmets.

On the right of the iframe I show three pictures:
-one with the logo of the helmet (not very important)
-A second one with a picture of the helmet (whatever the user is pointing at)
-And the third one an animated &quot;loading&quot; gif.

When the iframe-asp-site has finished loading, the &quot;loading&quot;.gif should disappear (with style.visibility = &quot;hidden&quot;) and the helmet-picture should appear...

But nothing happens! I can't see a thing! the &quot;loading&quot;.gif keeps on showing... I know my code is running because it takes a long time before it finishes loading (the preload-picture-function probably)... but I can see anything...
 
iframes pose so many problems. :(

Your problem seems quite complicated and setting up a test scenario is a bit hard for me.

If you could try to narrow down the problem and provide a working (buggy) example that doesn't require ASP or your entire enviroment I could try and help. Unless someone has more smarts than me in this field.

Hope you get somewhere. Gary Haran
 
I had some time to do some testing, and iframe does work in Netscape 6. My problem seems to be elsewhere... I think it could be the tables or something like that...

Do you know if &quot;style=&quot;visibility:hidden&quot; works in Netscape? If no, I have yet another problem... (sigh...)
 
I have found my problem, but of course I don't have an idea (yet :) ) to solve it. The problem is the width en height properties in iframe. If I set them to numbers (eg 400) there is no problem but when I use percentages it goes wrong... I'll keep you informed!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top