🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #5999

Re: java script vraagje

#5999
From: KLinZ
Date: Fri, 17 Jan 2003 18:52
24 lines
1860 bytes
Cofke wrote:
> Waarom werkt test niet en test2 wel???? (zie beneden)
> melding =>foto is geen object, nogthans is het er wel.
> window.document.foto.name   :werkt niet
> window.document.formke.foto.name werkt niet
> formke.foto.name : zo zou het moeten maar werkt ook niet.
> 
> ....code HTML
> <FORM name= "formke" onsubmit="return test(this.form)">
> <INPUT type="image"  name="foto"  src="images/spectrum.jpg"  >
> <INPUT type= "button" name="testje"  onclick="test2(this.form)"  >
> </FORM>
> 

Geef je form elementen ook een ID, dat helpt. Dus:

<input type="image" id="foto" name="foto" src="images/spectrum.jpg">

In combinatie met de aanwijzing van Jos zou het nu moeten werken.



-- 
www.zenobits.com
Technical Details
Message-ID: <OhYV9.1048$t91.47295@amstwist00>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!skynet.be!skynet.be!213.51.129.3.MISMATCH!newshub1.home.nl!home.nl!amsnews01.chello.com!amstwist00.POSTED!not-for-mail
References: <YiIV9.15794$bt6.3107313954@hebe.telenet-ops.be>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,1b92b87f6ad8bc20
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2003-01-17 10:54:01 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!skynet.be!skynet.be!213.51.129.3.MISMATCH!newshub1.home.nl!home.nl!amsnews01.chello.com!amstwist00.POSTED!not-for-mail
From: "KLinZ" <klinz@NOSPAMzenobitsSPAMNO.com>
Newsgroups: be.comp.programming
References: <YiIV9.15794$bt6.3107313954@hebe.telenet-ops.be>
Subject: Re: java script vraagje
Lines: 25
MIME-Version: 1.0
Content-Type: text/plain;
 charset="Windows-1252"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <OhYV9.1048$t91.47295@amstwist00>
Date: Fri, 17 Jan 2003 19:52:47 +0100
NNTP-Posting-Host: 212.187.71.152
X-Complaints-To: abuse@chello.nl
X-Trace: amstwist00 1042829550 212.187.71.152 (Fri, 17 Jan 2003 19:52:30 MET)
NNTP-Posting-Date: Fri, 17 Jan 2003 19:52:30 MET