That's because of the behavior of the "visibility" property only indicates
that the div should be "visible|invisible", but not change it's dimensions
in the document I believe. That's why the space still appears occupied.

 What I think you want is something more like the "display" property, which
indicates whether the div should occupy space in the document. Of course,
watch out for Netscape's treatment of this property.

That said, you might also look at changing the dimensions of the div as well
as setting visibility.

HTH,
Mike Jasnowski

-----Original Message-----
From: Jan Kester [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 12:43 PM
To: Struts Users Mailing List
Subject: RE: hide section of form


Thanks,

I did add DHTML and used DIV with visibility hidden and visibility visible.
Only, the submit buttons that come afterwards, remain in the same location.
That is, when the questions are hidden, the buttons are a far below in the
page.

Regards, Jan

-----Mensaje original-----
De: Rajat Pandit [mailto:[EMAIL PROTECTED]
Enviado el: viernes, 24 de octubre de 2003 10:14
Para: 'Struts Users Mailing List'
Asunto: RE: hide section of form


Thoug a non struts related question,  you might want to consider layers
(DHTML) and make them visible or invisible. Try using dreamweaver. It
has a good tool for making layers

-----Original Message-----
From: Jan Kester [mailto:[EMAIL PROTECTED]
Sent: Friday, October 24, 2003 12:59 AM
To: Struts Users Mailing List
Subject: hide section of form


Hello

how can I hide a section of my form with struts/javascript. That is,
someone presses a radio button and sees additional questions, presses
the opposite radio button and questions disappears. Without reloading
the form.

Regards, Jan


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to