![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
02/02/2011, 22:30
|
![Avatar de goteen_mx](http://static.forosdelweb.com/customavatars/avatar95811_1.gif) | | | Fecha de Ingreso: abril-2005 Ubicación: D.F.
Mensajes: 403
Antigüedad: 19 años, 10 meses Puntos: 37 | |
Respuesta: como obtener la fecha actual sin refrescar la pagina? var mifecha="";
xmlhttp.open("GET", "get_fecha.php",true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
mifecha = xmlhttp.responseText;
}
ahi ta
Saludos.
}
xmlhttp.send(null)
en el archivo PHP
get_fecha.php
<?php
echo date(); //ups no recuerdo la sintaxis en php para obtener la fecha, tendré que estudiar jejeje
?> |