Article View: chile.comp.programacion
Article #3064Re: ayuda con javascript
From: Rickoj
Date: Fri, 27 May 2005 19:46
Date: Fri, 27 May 2005 19:46
48 lines
2367 bytes
2367 bytes
En las news:d769fc$n1o$1@news1.nivel5.cl, a gato2005_cl se le ocurrio
tipear:
> 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
>
hice una prueba y con form[i] con i desde 0 a 4, y me indico los 5 primeros
campos
>
>
> 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:
<d77tav$3ju$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-mailReferences:
<d75hqe$fr6$1@news1.nivel5.cl> <d75odp$hlm$1@news1.nivel5.cl> <d75rkk$ilk$1@news1.nivel5.cl> <d769fc$n1o$1@news1.nivel5.cl>Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,47254f424c5fc3b1 X-Google-Attributes: gid1593cb,public X-Google-Language: ENGLISH,ASCII Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news1.nivel5.cl!not-for-mail From: "Rick_oj" <rick_oj@[sin-esto]tutopia.com> Newsgroups: chile.comp.programacion Subject: Re: ayuda con javascript Date: Fri, 27 May 2005 15:46:24 -0400 Organization: Varios Lines: 51 Message-ID: <d77tav$3ju$1@news1.nivel5.cl> References: <d75hqe$fr6$1@news1.nivel5.cl> <d75odp$hlm$1@news1.nivel5.cl> <d75rkk$ilk$1@news1.nivel5.cl> <d769fc$n1o$1@news1.nivel5.cl> NNTP-Posting-Host: pc-97-201-120-200.cm.vtr.net X-Trace: news1.nivel5.cl 1117223071 3710 200.120.201.97 (27 May 2005 19:44:31 GMT) X-Complaints-To: news@news1.nivel5.cl NNTP-Posting-Date: Fri, 27 May 2005 19:44:31 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1478 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478