Click to See Complete Forum and Search --> : Hiding a Fields in Netscape!!


xara
02-17-2003, 08:35 AM
referencing an object in Netscape
I am having problem referencing an object in Netscape, in Explorer it works but not Netscape.
The following is the format of my code:

<layer ..>
..
<a href='#" onClick="functionA()"...">
</layer>

<form ...>
..
<input type="text" name="celltext" ..>
..
..
</form>
</body>
</html>


In my functionA, I would like to hide the "celltext" text when a user clicks on a link.
Now my function is as follows:
function test(inForm) {
inForm.celltext.style.visibility = 'hidden';
}

and when I call the function I pass the this.form parameter.

Thanks

khalidali63
02-17-2003, 08:45 AM
Just tot test it.Try this and see if this works.

document.formName.elementName.style.visibility="hidden"

the above format works for both bowsers.

Khalid

xara
02-17-2003, 08:56 AM
Still does not work. Works in Explorer thogh.

khalidali63
02-17-2003, 09:02 AM
This means the error lies somewhere else in the code.
Pleae post your code(both html and JavaScript)

Khalid

gil davis
02-17-2003, 11:30 AM
It would also help to know what version of Netscape you are talking about.