🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #13086

javascript & netscape

#13086
From: jo
Date: Mon, 27 Aug 2001 15:28
16 lines
1296 bytes
dag,

Ik heb in mijn html pagina een form met daarin een aantal elementen.
Nu moet ik vanaf een element met een variabele naam (varField) een
loop doen over alle vorige elementen in de form...

Voor javascript in IE heb ik de volgende loop gemaakt, dit werkt :

"for ( var i = document.all(varField).sourceIndex - 1; i > 0; i--)"

maar Netscape kent geen "document.all", en ik heb geen id hoe ik adhv
de element naam in javascript & Netscape 4.x aan het element nummer
kan geraken...

iemand?
thanx...
Technical Details
Message-ID: <ca767550.0108270728.5dbe195e@posting.google.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!postnews1.google.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,22b9ff800cc92d26,start
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2001-08-27 08:28:31 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!postnews1.google.com!not-for-mail
From: jklaps@hotmail.com (jo)
Newsgroups: be.comp.programming
Subject: javascript & netscape
Date: 27 Aug 2001 08:28:30 -0700
Organization: http://groups.google.com/
Lines: 16
Message-ID: <ca767550.0108270728.5dbe195e@posting.google.com>
NNTP-Posting-Host: 213.53.165.28
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 998926111 24961 127.0.0.1 (27 Aug 2001 15:28:31 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: 27 Aug 2001 15:28:31 GMT