Iframe não aparece no firefox, mesmo sendo tableless

128 views
Skip to first unread message

Daniel Burle Orlandine

unread,
May 4, 2005, 3:31:55 PM5/4/05
to ar...@googlegroups.com
Pessoas, é o seguinte, isso ta ocorrendo somente com o firefox, No IE
e Opera, funciona direitin, o codigo não é tableless, mas mesmo a
versão que fiz não deu certo.

Na index tem um iframe que chama uma página, mas no firefox fica em
branco, e nos outros browsers funcionam normalmente.

O código da página que vai no iframe é esse, pq será que deu errado?
(lembrando que a versão em xhtml+css tb não funcionou)


não me xinguem. :P

"<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW ||
innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
function mudalink(end){
iframe.location.href = end;
}
</script>

<script type="text/javascript">
function adaptframe(pagina){
if (!window.opera && !document.mimeType && document.all &&
document.getElementById){
parent.document.getElementById(pagina).style.height=this.document.body.offsetHeight+"px";
}
else if(document.getElementById) {
parent.document.getElementById(pagina).style.height=this.document.body.scrollHeight+"px"
}
}
</script>





<link href="home2.css" rel="stylesheet" type="text/css" />
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"
onLoad= "adaptframe('conteudo')">
<div id="Layer1" style="position:absolute; left:22px; top:6px;
width:254px; height:155px; z-index:1; background-image:
url(imagens/destaque1_depoimento.jpg); layer-background-image:
url(imagens/destaque1_depoimento.jpg); border: 1px none #000000;">
<table width="164" height="154" border="0" cellpadding="0"
cellspacing="0" id="depoimentos">
<!--DWLayoutTable-->
<tr>
<td width="10" height="37">&nbsp;</td>
<td width="169"><h1>&nbsp;&nbsp;&nbsp;Depoimentos</h1></td>
</tr>
<tr>
<td height="74"></td>
<td valign="top"><p><a href="depoimentos.html"
target="conteudo">&quot;O projeto de reestrutura&ccedil;&atilde;o<br>
de nosso estoque indicado<br>
pela Togni reduziu em mais <br>
de 30% nosso custo com coberturas a terceiros&quot;</a></p></td>
</tr>
<tr>
<td height="41"></td>
<td><h2>Alo&iacute;sio de Faria<br />
Dir. Geral- Banco Real</h2></td>
</tr>
</table>
</div>
<div id="Layer2" style="position:absolute; left:287px; top:6px;
width:229px; height:256px; z-index:2; background-image:
url(imagens/destaque_clientes.jpg); layer-background-image:
url(imagens/destaque_clientes.jpg); border: 1px none #000000;">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="13" height="45">&nbsp;</td>
<td width="212"><h3>&nbsp;&nbsp;&nbsp;Nossos Clientes</h3></td>
</tr>
<tr>
<td height="101">&nbsp;</td>
<td valign="top"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="80" height="99">&nbsp;</td>
<td width="129" valign="top">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td height="103">&nbsp;</td>
<td valign="top"><h3>Quer conhecer nossa compet&ecirc;ncia?
Pergunte aos nossos clientes.<br>
<h4><a href="clientes.html">Clique aqui &eacute; veja quem
s&atilde;o.</a></h4></h3></td>
</tr>
</table>
</div>
<div id="Layer4" style="position:absolute; left:24px; top:167px;
width:204px; height:137px; z-index:4">
<table width="250" border="2" cellpadding="0" cellspacing="0"
bordercolor="#B6B6B6">
<tr>
<td width="252" height="144" valign="top"><table width="245"
border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="245" height="30" bgcolor="#DEDEDE"><table
width="236" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="13"><div align="right"><img
src="imagens/quadradin.gif" width="7" height="7" /></div></td>
<td width="10">&nbsp;</td>
<td width="213"><strong><font color="#003366" size="2"
face="Verdana, Arial, Helvetica, sans-serif">Seguro Garantia
</font></strong></td>
</tr>
</table></td>
</tr>
<tr>
<td height="69" valign="top"><table width="242" border="0"
cellspacing="0" cellpadding="0">
<tr>
<td width="10" height="68" bgcolor="#F4F4F4">&nbsp;</td>
<td width="232" valign="top" bgcolor="#F4F4F4"><p><img
src="imagens/destaque_seg.jpg" width="77" height="60" align="right"
/>S&oacute; &eacute; poss&iacute;vel ter certeza de que um contrato
ser&aacute; realmente cumprido com a contrata&ccedil;&atilde;o de um
seguro constitu&iacute;do especificamente para esse fim. &Eacute; o
Seguro Garantia, instrumento que garante ao credor de uma
obriga&ccedil;&atilde;o que o devedor a cumprir&aacute; nos exatos
termos do contrato firmado.</p><h4><a
href="seguros/garantia.html">Veja mais.</a></h4></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</div>
<div id="end">Rua
Santa Catarina, 1630 | 2&ordm; Andar | Lourdes<br />
Cep: 30.170-081 | Belo Horizonte | MG | Brazil<br />
Phone: +55 31 3293.5768 | Fax: 3293.1857<br />
to...@togniconsultores.com.br</font></div>
</body>
</html>
"

Irae Brasil

unread,
May 4, 2005, 3:40:05 PM5/4/05
to ar...@googlegroups.com
Oi Daniel, eu não tive tempo de ler seu código, mas o Firefox tem bug de render com iframe sim.

Em primeiro lugar, vc já viu como o site do terra pisca em computadores um pouco mais lentos?

E aqui no trampo a equipe tá tendo um problemão com iframes no firefox. Achei alguns bugs relatados no bugzilla do firefox umas semanas atrás mas agora não encontrei denovo. Estou querendo parar uma hora para produzir uma situação mínima mas ainda não consegui. Mas que aí tem bug, pode apostar que tem. Pelo que eu ví principalmente no background de floats, ou nele ou ao lado deles.

Tente reduzir seu código aos poucos, deixando o mais simples possível mantendo o bug. As vezes ajuda a achar um workaround. E claro, se tiver a opção, use DIV com overflow:scroll; e altura definida que é bem melhor.

[]s
Iraê
--
http://irae.pro.br/

.

Daniel Burle Orlandine

unread,
May 4, 2005, 3:53:20 PM5/4/05
to ar...@googlegroups.com
O engraçado é que as outras páginas linkadas a esse iframe carregam
normalmente....isso é que eu não entendi...saca. Tipo todo o conteudo
é carregado nesse iframe, e funciona normalmenet. Só a requereida
página, que não carrega, ela pisca na primeira fez que eu acesso, mas
depois fica branco.

Irapuan Martinez

unread,
May 4, 2005, 6:13:37 PM5/4/05
to ar...@googlegroups.com
At 16:31 4/5/2005, Daniel Burle Orlandine wrote:
>Na index tem um iframe que chama uma página, mas no firefox fica em
>branco, e nos outros browsers funcionam normalmente. O código da página
>que vai no iframe é esse, pq será que deu errado? (lembrando que a versão
>em xhtml+css tb não funcionou)

Suspeitei da possibilidade do strict model do firefox estar recusando o
<iframe>, mas testei aqui e funcionou.

Passa a URL do HTML que contém o <iframe>.

Reply all
Reply to author
Forward
0 new messages