🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #292

Re: form.elements() problem - please help

#292
From: Alan Boldock
Date: Thu, 07 Dec 2000 00:00
44 lines
2146 bytes
I guess your talking about JavaScript rather than the
"Real Thing" (sorry Coke)

I guess you can have a onChange event on the radio button
then in the function the onChange event runs you can get the
form elements and check the value of the radio button

using the document.form[].elements[radiobut1].value='whatever'

then you can change the "focus" of the input, ie change where
the cursor is using the Input.focus() method on the element you
want to move to.

note: focus doesn't work well in Unix and then only on input
fields that display text.

note I haven't tried this I just searched it out in my JavaScript
book.

Post (maybe mail or to this group) I you want me work it more
specifically. I guess this is just to offer some direction to you.

Perhaps I can recommend a good JS book? try
O'Reilly JavaScript The Definitive Guide... I don't leave
home without it

Alan Boldock
alan@boldenterprise.com.au

"Lucy" <lucy@dhimaging.com.au> wrote in message
news:qmIX5.153901$e5.102073@newsfeeds.bigpond.com...
>
> I have a form with 10 elements (fields).
> If someone picks the first radio button from field #4,
> I would like the form.element to jump to element #9.
> I know enough to know there is a form.elements(),
> but do not know how to manipulate it.
> Can someone PLEASE reply and help...
>
> Thanks in advance...
>
>
>
>
Technical Details
Message-ID: <V8MX5.4432$Vu1.80201@ozemail.com.au>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <qmIX5.153901$e5.102073@newsfeeds.bigpond.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,b800dac1d93bf1c8
X-Google-Attributes: gid10d6db,public
From: "Alan Boldock" <aboldock@boldenterprise.com.au>
Subject: Re: form.elements() problem - please help
Date: 2000/12/07
Message-ID: <V8MX5.4432$Vu1.80201@ozemail.com.au>
X-Deja-AN: 702155284
Distribution: world
References: <qmIX5.153901$e5.102073@newsfeeds.bigpond.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-Trace: ozemail.com.au 976195253 203.38.172.144 (Fri, 08 Dec 2000 00:20:53 EST)
Organization: www.boldenterprise.com.au
X-MSMail-Priority: Normal
Reply-To: "Alan Boldock" <aboldock@boldenterprise.com.au>
NNTP-Posting-Date: Fri, 08 Dec 2000 00:20:53 EST
Newsgroups: aus.computers.java