Closed Thread Icon

Topic awaiting preservation: problem accessing table with dom (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8813" title="Pages that link to Topic awaiting preservation: problem accessing table with dom (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: problem accessing table with dom <span class="small">(Page 1 of 1)</span>\

 
happymec
Obsessive-Compulsive (I) Inmate

From:
Insane since: Aug 2003

posted posted 08-13-2003 19:54

Hi
Lets say i have a page called products.htm with a table with data. This table is now hidden. Also i have an inline frame in products.htm with the page named pindex.htm.
When i click an image on pindex.htm[the iframe] i want the table on products.htm to become visible.
How can i do this.
i tried:
table name="head"
<img onClick="top.document.all.table.head.style.visibility='visible'">
this always says oject null.
I need help
Thanks


Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 08-13-2003 23:30

Don't use document.all. I'm not sure if that's part of the problem or not, but you should use standard code first, and *then* deal with problems. Besides, personally, I'm not familiar enough with non-standard objects like document.all to help you =)

So, I recommend you give the table an ID (id="mytable"), and use

top.document.getElementById('mytable').style.visibility='visible';

« BackwardsOnwards »

Show Forum Drop Down Menu