![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
24/06/2008, 07:17
|
![Avatar de spider_boy](http://static.forosdelweb.com/customavatars/avatar49752_2.gif) | | | Fecha de Ingreso: diciembre-2003 Ubicación: Chile
Mensajes: 1.855
Antigüedad: 21 años, 2 meses Puntos: 89 | |
Respuesta: Algo Simple... Archivo que se actualize cada segundo Cita:
Iniciado por MoDoRrO http://radiofresno.sytes.net/AJAX/ajax.php Código PHP: <script> new Ajax.PeriodicalUpdater('idMiElemento', 'elementos.php', { method: 'get', frequency: 3, decay: 2 }); </script>
<div id='Ajax.PeriodicalUpdater'>
no me tira error, solo dice Listo pero con errores en la pagina ![borracho](http://static.forosdelweb.com/fdwtheme/images/smilies/borracho.png) , el idMiElemento debe ser el id del div Código PHP: <script> new Ajax.PeriodicalUpdater('idMiElemento', 'elementos.php', { method: 'get', frequency: 3, decay: 2 }); </script>
<div id='idMiElemento'>
Espero te funcione. Nos vemos.
__________________ Nunca te olvidaré mi negra hermosa. Te extraño demasiado. |