🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.javascript
Article #210

Re: Netscape and objects in the frames collection

#210
From: Rob Sedgwick
Date: Mon, 28 Jun 1999 00:00
41 lines
2173 bytes
Steve van Dongen <svandong@uniserve.com> wrote in message
news:3776D26C.951E431@uniserve.com...
> Rob Sedgwick wrote:
> >
> > In IE it is possible to access objects in another frame using the
> > parent.frames collection, e.g.
> >
> > parent.frames["bottom"].prev.className = "Style1";
> >
> > here "prev" is the id of an image on the page within the frame "bottom"
> >
> > This does not seem to work in Netscape where the items in the frames
> > collection do not seem to refer to the original pages.
> > Does anyone know a work-around for this?
>
> There is no need for a workaround; referring to object in other frames
> works using the same code as IE.
>
> className doesn't work in NN and there is no workaround for that.
>

OK, maybe that was a bad example. Here's the declaration of the thing I want
to modify

<A ID=next HREF="gallery2p.htm" target="picture"> <img
src="pictures/next.gif" align="right"> </A>

And here's trying to modify it from another frame

 parent.frames["bottom"].next.href = "gallery2p.htm";

NN says "parent.frames.bottom.next has no properties."

Rob


--
E-mail:    rsedgwick@justinfashanu.demon.co.uk
ICQ UIN:   26075211
Homepage:  http://www.justinfashanu.demon.co.uk
Cockatiel Genetics: http://only.at/cockatiels
Technical Details
Message-ID: <930551794.12372.0.nnrp-02.d4e4e97b@news.demon.co.uk>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <930513636.819.0.nnrp-12.d4e4e97b@news.demon.co.uk> <3776D26C.951E431@uniserve.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f76f2,176e6025f244a7b
X-Google-Attributes: gidf76f2,public
X-Google-Thread: fb3cb,176e6025f244a7b
X-Google-Attributes: gidfb3cb,public
From: "Rob Sedgwick" <newsgroups@justinfashanu.demon.co.uk>
Subject: Re: Netscape and objects in the frames collection
Date: 1999/06/28
Message-ID: <930551794.12372.0.nnrp-02.d4e4e97b@news.demon.co.uk>
X-Deja-AN: 494672069
X-NNTP-Posting-Host: justinfashanu.demon.co.uk:212.228.233.123
References: <930513636.819.0.nnrp-12.d4e4e97b@news.demon.co.uk> <3776D26C.951E431@uniserve.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
X-Complaints-To: abuse@demon.net
X-Trace: news.demon.co.uk 930551794 nnrp-02:12372 NO-IDENT justinfashanu.demon.co.uk:212.228.233.123
X-MSMail-Priority: Normal
Newsgroups: comp.lang.javascript,demon.homepages.authoring