ALERTA character "<" is the first character of a delimiter but occurred as data .
…urn (((date.getTime()-totime_d.getTime())/time_d)<(-1));
ERRROR XML Parsing Error: StartTag: invalid element name .
…n (((date.getTime()-totime_d.getTime())/time_d)<(-1));
Os pego la zona del codigo que me esta dando problemas a ver si me podeis ayudar. Pues la funcion funciona perfectamente pero a la hora de validar... me da este fallo.
Esta funcion me sirve para llamar un calendario (DHTML Calendar).
Código:
Gracias, cualquier sugerencia sera bien venida. <script type="text/javascript">
var fecha = new Date();
fecha.setDate(fecha.getDate()+1);
var cal_inif_div = document.getElementById("cal_inif");
var cal_inif_date = new Calendar(true, fecha, Refreshinif);
cal_inif_date.time_wNumbers = false;
cal_inif_date.electric = false;
cal_inif_date.getDateStatus = function(date) {
var totime_d = new Date();
return (((date.getTime()-totime_d.getTime())/time_d)<(-1));
}
cal_inif_date.ifFormat = "%d-%m-%Y";
cal_inif_date.create(cal_inif_div);
cal_inif_date.show();
</script>
Pues he intentado a incluirlo dentro de un archivo js y luego llamarlo y nada, tambien he probado a crear una funcion y luego llamarla y nada... Estoy buscando una solucion a ver si lo consigo validar.


) debería funcionar, también puedes probar poniéndolo así:
