RE: hiding a div in another frame in NN?
by "Phil Babcock" <pbabcock(at)bgsgroup.com>
|
| Date: |
Tue, 11 Jul 2000 12:05:13 -0400 |
| To: |
Rebecca.Campbell(at)converg.com, "hwg-languages(at)hwg.org" <hwg-languages(at)hwg.org> |
| References: |
converg |
| |
todo: View
Thread,
Original
|
|
I am using a div. In another area of the site I use
document.layers.tags.visibility='hidden' which works perfectly in NN. NN
doesnt seem to care that I use a div when I reference document.layers - it
still works. What I cant seem to do is reference a div in another frame.
Is there an online reference to the NN DOM that I could use to sort out
what the syntax should be? In the frame I have a table, which includes a
form, which includes the layer I am interested in. All I need to know is
how to reference that layer from another frame.
Thanks everyone for your help... sooner or later I (we) will get it.
*********** REPLY SEPARATOR ***********
Campbell, Rebecca wrote:
>i've always referenced the frame by its array index, like this:
>
> parent.frames[1].hideme.style.visibility = 'hidden';
>
>i think what you would need to do, since you're not accessing the frames
>array, is get rid of "frames" in your code, like:
>
> parent.hidden.hideme.style.visibility = 'hidden';
>
>also, it looks like you're using layers, which is a netscape only thing,
but
>then you're setting visibility to 'hidden' instead of 'hide'. also, note
>that IE requires that you access the "style" of the object you wish to
>show/hide. for cross browser, you'll need to detect the browser and use
the
>above code for IE, and use the following, or something similar, for NN:
>
> parent.frames[1].hideme.visibility = 'hide';
>
>i haven't tested the NN code out, but methinks it should work. if this
>doesn't make sense, please forgive... been up too long already. :)
>
>hth,
>rebecca
>http://www.nerdygirl.com
>
>
>-----Original Message-----
>From: Phil Babcock [mailto:pbabcock(at)bgsgroup.com]
>Sent: Tuesday, July 11, 2000 6:54 AM
>To: hwg-languages(at)hwg.org
>Subject: hiding a div in another frame in NN?
>
>
>HI all
>
>What is the correct syntax to hide a div (named "hideme") in another frame
>(named "hidden") in NN?
>
>Here is what I have (that isnt working.)
>
><script language="javascript">
><!--
>parent.frames.hidden.layers.hideme.visibility='hidden';
>//-->
></script>
>
>tia!
>
>
>
>Phil Babcock
>Lead Web Designer
>BGS Group Inc.
*********** END REPLY SEPARATOR ***********
Phil Babcock
Lead Web Designer
BGS Group Inc.
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.