🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.javascript
Article #211

Re: Netscape and objects in the frames collection

#211
From: Doug Greenhough
Date: Mon, 28 Jun 1999 00:00
43 lines
2441 bytes
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?))

Doug

-- 
Doug Greenhough                 the Spirit Demon
mailto:doug@spirit.demon.co.uk  http://www.spirit.demon.co.uk
Technical Details
Message-ID: <EODmfHA425d3EwcJ@spirit.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> <930551794.12372.0.nnrp-02.d4e4e97b@news.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: Doug Greenhough <doug@spirit.demon.co.uk>
Subject: Re: Netscape and objects in the frames collection
Date: 1999/06/28
Message-ID: <EODmfHA425d3EwcJ@spirit.demon.co.uk>
X-Deja-AN: 494835901
X-NNTP-Posting-Host: spirit.demon.co.uk:158.152.248.61
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>
X-Complaints-To: abuse@demon.net
X-Trace: news.demon.co.uk 930590080 nnrp-08:19489 NO-IDENT spirit.demon.co.uk:158.152.248.61
Organization: poor
MIME-Version: 1.0
Newsgroups: comp.lang.javascript,demon.homepages.authoring