🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.javascript
Article #208

Re: Netscape and objects in the frames collection

#208
From: Steve van Dongen
Date: Tue, 29 Jun 1999 00:00
26 lines
1772 bytes
Rob Sedgwick wrote:
> 
> 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."

parent.frames["bottom"].document.links[i].href where i is a zero-based
index referring to the (i+1)th link in the document.  In other words,
the first link is 0, the second link is 1, ...

You can't use a NAME attribute because then your link would not
necessarily be a link anymore -- it would be an anchor -- and the ID
attribute isn't recognized in released version of NN.

BTW, this problem is not related to frames.

Regards,
Steve
Technical Details
Message-ID: <37798010.28BAF3A2@uniserve.com>
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: Steve van Dongen <svandong@uniserve.com>
Subject: Re: Netscape and objects in the frames collection
Date: 1999/06/29
Message-ID: <37798010.28BAF3A2@uniserve.com>
X-Deja-AN: 495439022
Content-Transfer-Encoding: 7bit
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-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: newsabuse@remarQ.com
X-Trace: 930709383 I.4G92M7S392DB781 usenet46.supernews.com
Organization: Posted via RemarQ, http://www.remarQ.com - The Internet's Discussion Network
Mime-Version: 1.0
Newsgroups: comp.lang.javascript,demon.homepages.authoring