You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dinesh Chaturvedi <d....@nihilent.com> on 2001/05/22 10:56:17 UTC
Hide and Show Problem
Hello Friends i am facing a problem.i want to hide and show a text box
(html element ) at run time. using both netscape 4.x and IE 4.x the
problem is it works fine with IE if i use a style sheet with the element
and at run time using java script functions i can say
for hide
document.forms[0].element.style.dispaly="none";
for show
document.forms[0].element.style.dispaly="block";
but when i try to use style with netscape 4.x it does not support style
sheet.
also it is difficult or rather not possible to access a div tag usin
netscape.
CAN any body of you help me find a way out of this problem or can
anybody suggest a newsgroup or place where i can put forward my
problem.please help.........i am getting frustrated with the problem i
have tried many ways but ........
Dinesh
Re: Hide and Show Problem
Posted by William Jaynes <wj...@mediaone.net>.
I would do this on the server side by wrapping the text box in a logic
tag.
<logic:present name="visibilityFlag">
<html:text ... \>
</logic:present>
But perhaps you have a requirement to do it on the client.
----- Original Message -----
From: "Dinesh Chaturvedi" <d....@nihilent.com>
To: <st...@jakarta.apache.org>
Sent: Tuesday, May 22, 2001 4:56 AM
Subject: Hide and Show Problem
Hello Friends i am facing a problem.i want to hide and show a text box
(html element ) at run time. using both netscape 4.x and IE 4.x the
problem is it works fine with IE if i use a style sheet with the element
and at run time using java script functions i can say
for hide
document.forms[0].element.style.dispaly="none";
for show
document.forms[0].element.style.dispaly="block";
but when i try to use style with netscape 4.x it does not support style
sheet.
also it is difficult or rather not possible to access a div tag usin
netscape.
CAN any body of you help me find a way out of this problem or can
anybody suggest a newsgroup or place where i can put forward my
problem.please help.........i am getting frustrated with the problem i
have tried many ways but ........
Dinesh