Your problem is being caused by differences in the JavaScript Document
Object Model between browsers. The simplest solution is to use a JavaScript
library which accounts for such differences, such as the DynAPI:

http://sourceforge.net/projects/dynapi.

That said, this is not really a Struts-related problem and would best be
discussed somewhere like this:

http://forums.devshed.com/

Cheers,
David

-----Original Message-----
From: Dinesh Chaturvedi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 7:25 AM
To: [EMAIL PROTECTED]
Subject: RE: Hide and Show Problem


well doing it on server side does not make sense i want it on client
side.

Thanks & Regards

Dinesh Chaturvedi
Programmer Analyst
Nihilent Technologies Pvt Ltd.
Pune 6054452 Ext 349


-----Original Message-----
From: William Jaynes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 4:36 PM
To: [EMAIL PROTECTED]
Subject: Re: Hide and Show Problem


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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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


Reply via email to