afrusoft
08-24-2004, 06:19 PM
Hi Guys,
This the first question I am putting on the forum. Hope you all will give it a try.
I have an inputbox in my code. And sometimes I happen to hide some great grand parent node of the input box. ie, I will just hide the table or div element in which there will be lots of child nodes which again contians lots of child nodes and ... like that... and some where inside, my inputbox will be present.
I hide the great grand parent node using someElement.style.display="none";
So when I hide the great grand parent node all the content underneath will become invisible. But the actuall properties of the child nodes will be the same. ie, the actual display property of the input box is still visible.
Very funny na... the input box is hidden to our eyes but it seems to be visible to the code.
Now what I want is, how to detect actuall visibility( that which we will see) of an element. How can I know if the element is actually visible to the eye or not.
Please dont tell me to use "myinputbox.style.display" or "myinputbox.style.visibility". They all show visible but in reality inputbox is hidden because its greatgrandparent is hidden.
Awaiting for answers...
Thanking you in advance.
Afru
This the first question I am putting on the forum. Hope you all will give it a try.
I have an inputbox in my code. And sometimes I happen to hide some great grand parent node of the input box. ie, I will just hide the table or div element in which there will be lots of child nodes which again contians lots of child nodes and ... like that... and some where inside, my inputbox will be present.
I hide the great grand parent node using someElement.style.display="none";
So when I hide the great grand parent node all the content underneath will become invisible. But the actuall properties of the child nodes will be the same. ie, the actual display property of the input box is still visible.
Very funny na... the input box is hidden to our eyes but it seems to be visible to the code.
Now what I want is, how to detect actuall visibility( that which we will see) of an element. How can I know if the element is actually visible to the eye or not.
Please dont tell me to use "myinputbox.style.display" or "myinputbox.style.visibility". They all show visible but in reality inputbox is hidden because its greatgrandparent is hidden.
Awaiting for answers...
Thanking you in advance.
Afru