Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/08/2008, 17:46
Bhen
 
Fecha de Ingreso: febrero-2004
Mensajes: 125
Antigüedad: 20 años, 2 meses
Puntos: 0
Flash y XML, añadir la fecha actual

Buenas, he cogido el codigo de una pagina para q me muestre y meta datos en un xml. Todo funciona, pero quiero añadir que además meta la fecha actual.
El ´codigo q utilizo es el siguiente:

Código:
myXML.firstChild.appendChild(myXML.createElement("entry"));
myXML.firstChild.lastChild.attributes.myName = myName;
myXML.firstChild.lastChild.appendChild(myXML.createElement("myText"));
myXML.firstChild.lastChild.lastChild.appendChild(myXML.createTextNode(myMessage));
myXML.sendAndLoad("processXML.php", receiverXML);
Para la fecha, me imagino q habrá q hacer algo como esto
Código:
var today_date = new Date();
var myDate:String = (today_date.getDate()+"/"+(today_date.getMonth()+1)+"/"+today_date.getFullYear());
Pero no se como añadirlo al XML.
Una ayudita, plis.
gracias.

Última edición por Bhen; 05/08/2008 a las 17:52