refrescar
Publicado por pato (1 intervención) el 17/04/2007 17:35:51
hola , tengo una pagina con un ajax que llama a un archivo txt que contiene un mensaje para mostrar , pero si cambio el mensaje en el txt tengo refrescar la pagina para que aparezca el cambio.
Necesito que el div del pagina se refresque cada cierto tiempo sin que se refresque la pagina completa.
el txt sólo contiene esto:
<div class="message">
<a href="http://www.elpais.es">noticias</a><br />titular uno.
</div>
<div class="message">
<a href="http://www.latercera.cl/">noticias</a><br />titular dos
</div>
esto esta en la pagina noticias.php
<script src="ajaxticker.js" type="text/javascript">
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
</head>
<body>
<script type="text/javascript">
var xmlfile="tickercontent.txt" //path to ticker txt file on your server.
new ajax_ticker(xmlfile, "ajaxticker1", "someclass", 3500, "fade")
</script>
</body>
help!
Necesito que el div del pagina se refresque cada cierto tiempo sin que se refresque la pagina completa.
el txt sólo contiene esto:
<div class="message">
<a href="http://www.elpais.es">noticias</a><br />titular uno.
</div>
<div class="message">
<a href="http://www.latercera.cl/">noticias</a><br />titular dos
</div>
esto esta en la pagina noticias.php
<script src="ajaxticker.js" type="text/javascript">
</script>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Documento sin título</title>
</head>
<body>
<script type="text/javascript">
var xmlfile="tickercontent.txt" //path to ticker txt file on your server.
new ajax_ticker(xmlfile, "ajaxticker1", "someclass", 3500, "fade")
</script>
</body>
help!
Valora esta pregunta


0