Ver Mensaje Individual
  #4 (permalink)  
Antiguo 20/12/2007, 06:27
camposanto
 
Fecha de Ingreso: octubre-2007
Mensajes: 15
Antigüedad: 16 años, 6 meses
Puntos: 1
Re: obtener fecha para mostrar en la página desde la ruta de la página

Por cierto Keysher:

Podrías exponer código de esa página index. php de la que hablas para estudiarlo y ver qué hace a ver si haciendo una chapucilla puedo dar con algo?

Ya te digo que mi calendario apunta a un fichero concreto en una ruta...

Bueno, quizás sea mejor que ponga aquí el código del calendario:


<!-- calendar stylesheet -->
<link rel="stylesheet" type="text/css" media="all" href="./jscalendar/calendar-win2k-cold-3.css" title="win2k-cold-1" />
<!-- main calendar program -->
<script type="text/javascript" src="./jscalendar/calendar.js"></script>
<!-- language for the calendar -->
<script type="text/javascript" src="./jscalendar/lang/calendar-es.js"></script>
<!-- the following script defines the Calendar.setup helper function, which makes
adding a calendar a matter of 1 or 2 lines of code. -->
<script type="text/javascript" src="./jscalendar/calendar-setup_stripped.js"></script>
<!-- end calendar stylesheet -->


<script type="text/javascript">
function dateChanged(calendar) {
// Beware that this function is called even if the end-user only
// changed the month/year. In order to determine if a date was
// clicked you can use the dateClicked property of the calendar:
if (calendar.dateClicked) {
// OK, a date was clicked, redirect to /yyyy/mm/dd/index.php
var y = calendar.date.getFullYear();
var m = calendar.date.getMonth(); // integer, 0..11
var d = calendar.date.getDate(); // integer, 1..31
// redirect...
window.open("/" + y + "/" + m + "/" + d + "/index.php");
}
};

Calendar.setup(
{
flat : "calendar-container", // ID of the parent element
flatCallback : dateChanged // our callback function
}
);
</script>

los ficheros se pueden obtener de aquí:

http://www.ccooaytomajadahonda.es/jscalendar/calendar-win2k-cold-3.css
http://www.ccooaytomajadahonda.es/jscalendar/calendar.js
http://www.ccooaytomajadahonda.es/jscalendar/lang/calendar-es.js
http://www.ccooaytomajadahonda.es/jscalendar/calendar-setup_stripped.js

Lo siento, pero no me dejan publicar url's de momento

Muchas gracias de antemano por tu ayuda.

Un saludo

camposanto