Ver Mensaje Individual
  #8 (permalink)  
Antiguo 13/05/2010, 11:08
carlorodri
 
Fecha de Ingreso: mayo-2010
Mensajes: 7
Antigüedad: 14 años
Puntos: 0
Respuesta: Problema calendario submit

Cita:
Iniciado por David Ver Mensaje
Se entiende, pero sin ver el script del calendario es difícil decirte qué hay que modificar.

Busca la parte del script que modifica el targetelement (this.tgt, el input) y allí envías el formulario.


Aqui me sale un targetelement tal como dices...


Código Javascript:
Ver original
  1. if(this.mode == 'popup' && targetelement && targetelement.type == 'text') //if the target element has been set to be an input text box
  2.   {
  3.     this.tgt = targetelement;
  4.     this.calendar.style.position = 'absolute';
  5.     this.topOffset = this.tgt.offsetHeight; // the vertical distance (in pixels) to display the calendar from the Top of its input element
  6.     this.leftOffset = 0;           // the horizontal distance (in pixels) to display the calendar from the Left of its input element
  7.     this.calendar.style.top = this.getTop(targetelement) + this.topOffset + 'px';
  8.     this.calendar.style.left = this.getLeft(targetelement) + this.leftOffset + 'px';
  9.     document.body.appendChild(this.calendar);
  10.     this.tgt.calendar = this;
  11.     this.tgt.onfocus = function () {this.calendar.show();}; //the calendar will popup when the input element is focused
  12.     this.tgt.onblur = function () {if(!this.calendar.mousein){this.calendar.hide();}}; //the calendar will popup when the input element is focused
  13.   }
  14.   else
  15.   {
  16.     this.container = targetelement;
  17.     this.container.appendChild(this.calendar);
  18.   }