Article View: comp.lang.javascript
Article #212Re: Netscape and objects in the frames collection
From: Rob Sedgwick
Date: Tue, 29 Jun 1999 00:00
Date: Tue, 29 Jun 1999 00:00
53 lines
2875 bytes
2875 bytes
Doug Greenhough <doug@spirit.demon.co.uk> wrote in message news:EODmfHA425d3EwcJ@spirit.demon.co.uk... > In article <930551794.12372.0.nnrp-02.d4e4e97b@news.demon.co.uk>, Rob > Sedgwick <newsgroups@justinfashanu.demon.co.uk> writes > >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. > >> > Damn, you NN! (only joking NN fans, should be "Damn you, IE!!" really) > > > >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." > This menas that the object can't be found, and can be solved by using > name= instead of id= (Damn you, IE!! (Happy now Netscape lovers?)) > Nope that doesn't work either! Where next with Netscape? 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:
<930636938.5263.0.nnrp-13.d4e4e97b@news.demon.co.uk>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<930513636.819.0.nnrp-12.d4e4e97b@news.demon.co.uk><3776D26C.951E431@uniserve.com><930551794.12372.0.nnrp-02.d4e4e97b@news.demon.co.uk> <EODmfHA425d3EwcJ@spirit.demon.co.uk>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/29 Message-ID: <930636938.5263.0.nnrp-13.d4e4e97b@news.demon.co.uk> X-Deja-AN: 495080621 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><930551794.12372.0.nnrp-02.d4e4e97b@news.demon.co.uk> <EODmfHA425d3EwcJ@spirit.demon.co.uk> 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 930636938 nnrp-13:5263 NO-IDENT justinfashanu.demon.co.uk:212.228.233.123 X-MSMail-Priority: Normal Newsgroups: comp.lang.javascript,demon.homepages.authoring