🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #7788

Re: Javscript probleem

#7788
From: Jos
Date: Mon, 26 Aug 2002 08:46
24 lines
2125 bytes
"James Bond" <007(antispam)@pandora.be> schreef in bericht news:cTba9.87759$8o4.11686@afrodite.telenet-ops.be...
> We hebben een Javascript in mekaar geknutseld en het wil maar niet werken.
> Bedoeling van onderstaand script is dat hij automatisch overspringt naar het
> volgende veld.
>
> <input value=""
>         name="__item_Bijlage_B5_4_b_dd__"
>          maxLength="2" size="2"
>           nextField="__item_Bijlage_B5_4_b_mm__"
>            onKeyUp="JavaScript:GoToNextField(value.length, maxLength,nextField)">

Hier zit de fout: nextField is een string.
Wat jij wil is een referentie naar het OBJECT doorgeven,
want je wil de focus() methode aanroepen.

De volgende regel werkt wel:

onKeyUp="JavaScript:GoToNextField(value.length, maxLength,__item_Bijlage_B5_4_b_mm__)">

omdat hier het object zelf als parameter opgegeven werd.

Veel succes met je script!

Jos
Technical Details
Message-ID: <OVla9.1059$dC3.144260119@hestia.telenet-ops.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newspeer.clara.net!news.clara.net!diablo.theplanet.net!btnet-peer!btnet!newsfeed.london1.eu.level3.net!level3eu!ossa.telenet-ops.be!hestia.telenet-ops.be.POSTED!not-for-mail
References: <cTba9.87759$8o4.11686@afrodite.telenet-ops.be>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,25042a0a36c1c616
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2002-08-26 02:00:10 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newspeer.clara.net!news.clara.net!diablo.theplanet.net!btnet-peer!btnet!newsfeed.london1.eu.level3.net!level3eu!ossa.telenet-ops.be!hestia.telenet-ops.be.POSTED!not-for-mail
From: "Jos" <josnospambranders@fastmail.fm>
Newsgroups: be.comp.programming
References: <cTba9.87759$8o4.11686@afrodite.telenet-ops.be>
Subject: Re: Javscript probleem
Lines: 27
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: <OVla9.1059$dC3.144260119@hestia.telenet-ops.be>
Date: Mon, 26 Aug 2002 08:46:38 GMT
NNTP-Posting-Host: 213.118.218.31
X-Complaints-To: abuse@telenet.be
X-Trace: hestia.telenet-ops.be 1030351598 213.118.218.31 (Mon, 26 Aug 2002 10:46:38 CEST)
NNTP-Posting-Date: Mon, 26 Aug 2002 10:46:38 CEST
Organization: Telenet Internet