🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #3061

Re: ayuda con javascript

#3061
From: gato2005_cl
Date: Fri, 27 May 2005 04:59
43 lines
2226 bytes
forms[0] indica el primer form de un documento, puedes usar directamente 
el nombre del form.

Discrete form objects would normally be retrieved by their index in the 
Forms collection (for example document.forms(0) contains a reference to 
the first <FORM> element in the document), but a string value can be 
used, as long as that string is a valid identifier (ID or NAME attribute 
value) for a <FORM> in the document.

E.g.

document.forms('frmFeedback')
or

document.frmFeedback



Rick_oj escribi�:
> En las news:d75odp$hlm$1@news1.nivel5.cl, a gato2005_cl se le ocurrio
> tipear:
> 
>>�sera form[0].nombre.checked=true;?
> 
> 
> no que form[0], indica el primer elemento del form? en este caso no deberia
> ser form[i] (i desde el numero que pertenece al formulario)
> 
> onda si esta asi
> <form>
> <input type=text ...>
> <input type=checkbox >
> <input type=checkbox >
> <input type=checkbox >
> <input type=checkbox >
> 
> entonces tendrias que hacer form[i].nombre.checked=true en este casi i desde
> 1 hasta 4
> 
> como me quede con la duda lo probe y asi me funciono, tambien puedes usar
> document.nombre.elements[i]
> 
> 
Technical Details
Message-ID: <d769fc$n1o$1@news1.nivel5.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news1.nivel5.cl!not-for-mail
References: <d75hqe$fr6$1@news1.nivel5.cl> <d75odp$hlm$1@news1.nivel5.cl> <d75rkk$ilk$1@news1.nivel5.cl>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,47254f424c5fc3b1
X-Google-Attributes: gid1593cb,public
X-Google-Language: ENGLISH,CP1252
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news1.nivel5.cl!not-for-mail
From: gato2005_cl <gato2005_clSINESTO@spymac.com>
Newsgroups: chile.comp.programacion
Subject: Re: ayuda con javascript
Date: Fri, 27 May 2005 00:59:44 -0400
Organization: Varios
Lines: 43
Message-ID: <d769fc$n1o$1@news1.nivel5.cl>
References: <d75hqe$fr6$1@news1.nivel5.cl> <d75odp$hlm$1@news1.nivel5.cl> <d75rkk$ilk$1@news1.nivel5.cl>
NNTP-Posting-Host: pc-178-51-86-200.cm.vtr.net
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news1.nivel5.cl 1117169964 23608 200.86.51.178 (27 May 2005 04:59:24 GMT)
X-Complaints-To: news@news1.nivel5.cl
NNTP-Posting-Date: Fri, 27 May 2005 04:59:24 +0000 (UTC)
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: es-es, es
In-Reply-To: <d75rkk$ilk$1@news1.nivel5.cl>