Retroceder   Foros del Web > Diseño de Sitios web > Web general

Respuesta
 
Herramientas Desplegado
Antiguo 24-ago-2007, 04:45   #1 (permalink)
dagava ha deshabilitado el karma
 
Fecha de Ingreso: agosto-2007
Mensajes: 1
Enviar un mensaje por MSN a dagava
DHTML Calendar

Hola, explico mi problema:

tengo una jsp llamada por ejemplo a.jsp,

a.jsp
-----


en ella incluyo un iframe en el que llamo a otra jsp llamada por ejemplo cal.jsp


a.jsp
-------
-
-
-
----->iframe
------
-
-
-
------> cal.jsp


entonces, en esta cal.jsp, he incluido una llamada a la función Calendar.setup, relativa a la configuración del DHTML Calendar cuyo código baje de la página: http://dynarch.com/mishoo
a esta función Calendar.setup la llamo de la siguiente manera:

Calendar.setup({
inputField : "c<xsl:value-of select="id"/>", // id of the input field
ifFormat : "%d/%m/%Y", // format of the input field
button : "calendarioc<xsl:value-of select="id"/>", // trigger for the calendar (button ID)
align : "Br", // alignment (defaults to "Bl")
singleClick : true


});


En ella, button indica que elemento activa el evento que crea el calendario y lo muestra...


mi pregunta es:

¿CÓMO PUEDO HACER QUE EL CALENDARIO SE MUESTRE (lo que equivale a: EL ELEMENTO PADRE DEL CALENDARIO SEA...) EN ALGÚN ELEMENTO(por ejemplo body, o cualquier otro div), DE
LA JSP a.jsp, POR SUPUESTO, TENIENDO EN CUENTA QUE LOS EVENTOS DEL CALENDARIO DEBE SEGUIR FUNCIONANDO?

Lo he intentado utilizando la función

Calendar.prototype.reparent = function (new_parent) {
var el = this.element;
el.parentNode.removeChild(el);
new_parent.appendChild(el);
};

pero no funciona,
también he intentado modificando la función

Calendar.prototype.create = function (_par) {
var parent = null;

if (! _par) {
// default parent is the document body, in which case we create
// a popup calendar.
//parent = document.getElementsByTagName("body")[0];
parent = window.parent.document.getElementsByTagName("body" )[0];
this.isPopup = true;
} else {
parent = _par;
this.isPopup = false;
...

pero tampoco obtengo los resultados esperados.

Bueno, sólo necesito que funcione en IExplorer...
dagava está desconectado   Responder Citando
Respuesta

No hay votos aún.


Herramientas
Desplegado

Normas de Publicación
No puedes crear nuevos temas
No puedes responder temas
No puedes subir archivos adjuntos
No puedes editar tus mensajes

BB code is Activado
Caritas están Activado
[IMG] está Activado
Código HTML está Desactivado


La Zona horaria es GMT -6. Ahora son las 19:53.


Message Board Statistics

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96