Ver Mensaje Individual
  #2 (permalink)  
Antiguo 28/10/2009, 06:05
Didi-chan
 
Fecha de Ingreso: febrero-2009
Mensajes: 102
Antigüedad: 16 años, 1 mes
Puntos: 1
Respuesta: Usando JS Calendar

Lo que tienes que hacer es ponerle un nombre distinto al segundo lanzador, y luego dos funciones Calendar.setup, cada una con su lanzador y su campo input.

Más o menos así

Código:
 <td width="120"><span class="Estilo3">Desde:</span></td>
      <td width="192"><input name="f_desde" type="text" id="f_desde" size="8" maxlength="10" />
          <button id="trigger">...</button></td>



 <td width="120"><span class="Estilo3">Hasta:</span></td>
      <td width="192"><input name="f_hasta" type="text" id="f_hasta" size="8" maxlength="10" />
          <button id="trigger2">...</button></td>
y luego

Código:
<script type='text/javascript'>
	Calendar.setup({
		inputField : 'f_desde',
		ifFormat : '%d-%m-%Y',
		button : 'trigger' 
	});
</script>

<script type='text/javascript'>
	Calendar.setup({
		inputField : 'f_hasta', 
		ifFormat : '%d-%m-%Y',
		button : 'trigger2' 
	});
</script>
Prueba a ver si te funciona.