Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/02/2011, 15:09
arnet46
Usuario no validado
 
Fecha de Ingreso: junio-2008
Mensajes: 44
Antigüedad: 15 años, 10 meses
Puntos: 0
hacer click y actualizar!

hola nuevamente amigos, les cuento que estoy teniendo un problema

Primero les presento los scripts, luego explico

turnos.php
-------------------------------------------------
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="/sao/css/style.css">
<title>Turnos</title>

</head>

<body background="/sao/imgs/fondo_iframe.jpg">
<table width="100%" border="0">
<tr>
<td>

<table width="700" align="center" border="0">

<tr>
<td>
<table width="700" border="1" bordercolorlight="#666666" align="center" bgcolor="#FFFFFF">
<tr class="cabecera">
<td align="center">Hora</td>
<td nowrap="nowrap" align="center">Apellido</td>
<td nowrap="nowrap" align="center">Nombre</td>
<td align="center">Motivo</td>
<td align="center">Tipo</td>
<td nowrap="nowrap" align="center" width="1%">Primer visita?</td>
</tr>
<tr>
<td width="1%">9:30</td>
<td></td>



</table>

</td>
<td valign="top"><?php include_once ("calendario.html") ?></td>

</tr>
</table>
</td>
</tr>
</table>


</body>
</html>
--------------------------------------------------
estoy haciendo una agenda de turnos. Lo que muestro arriba es la pagina, en la cual muestra una tabla con un calendario. este ultimo esta embebido mediante un include.

ahora paso a mostrarles el script del calendario
calendario.html
----------------------------------
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Dynarch Calendar -- Populate fields</title>
<script src="calendario/src/js/jscal2.js"></script>
<script src="calendario/src/js/lang/es.js"></script>
<link rel="stylesheet" type="text/css" href="calendario/src/css/jscal2.css" />
<link rel="stylesheet" type="text/css" href="calendario/src/css/border-radius.css" />
<link rel="stylesheet" type="text/css" href="calendario/src/css/steel/steel.css" />
</head>
<body>
<form>
<table>
<tr>
<td colspan="4" id="cont"></td>
</tr>
<tr>
<td>
<input style="text-align: center" readonly="true" name="date" id="f_date" size="14" />
</td>

</tr>
</table>
</form>
<script type="text/javascript">//<![CDATA[

// this handler is designed to work both for onSelect and onTimeChange
// events. It updates the input fields according to what's selected in
// the calendar.
function updateFields(cal) {
var date = cal.selection.get();
if (date) {
date = Calendar.intToDate(date);
document.getElementById("f_date").value = Calendar.printDate(date, "%Y-%m-%d");
}

};

Calendar.setup({
cont : "cont",
<!--showTime : 12,-->
onSelect : updateFields,
onTimeChange : updateFields
});

//]]></script>
</body>
</html>
-----------------------------------------
lo que quiero es sencillo pero no lo consigo. Yo quiero que cada vez que haga click sobre algun dia del calendario se me actualice la pagina...nada mas

Espero que me puedan ayudar!

Muchas gracias desde ya

Diego