Ver Mensaje Individual
  #9 (permalink)  
Antiguo 30/08/2011, 09:19
Avatar de emprear
emprear
Colaborador
 
Fecha de Ingreso: junio-2007
Ubicación: me mudé
Mensajes: 8.388
Antigüedad: 16 años, 10 meses
Puntos: 1567
Respuesta: Recargar Iframe Web

SeRgIeTTe, te estás complicando


ya te indique como, pero por lo visto algun error cometiste

Ejemplo

Pagina que tiene el iframe, index.html

Código HTML:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <title>titulo</title>
  5. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  6.  
  7. </head>
  8. <iframe src="hora.php" width="100" height="100"></iframe>
  9. </body>
  10. </html>


ahora, la página hora.php , que es la que tiene qque tener el meta apuntando a hora.php, es decir la página en si misma

Código PHP:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <title>titulo</title>
  6. <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  7. <meta http-equiv="refresh" content="10;url=hora.php">
  8. </head>
  9. <body>
  10. <p>
  11.     <?php echo time(); ?>
  12. </p>
  13. </body>
  14. </html>

puse la funcion time() para darle algo de dinamismo, y el refresh esta en 10 segundos

Eso tal cual, solo recarga el iframe , no la página completa


Saludos
__________________
La voz de las antenas va, sustituyendo a Dios.
Cuando finalice la mutación, nueva edad media habrá
S.R.