🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #3070

Re: ayuda con javascript

#3070
From: Rickoj
Date: Sat, 28 May 2005 21:21
46 lines
2629 bytes
"Jos� Miguel Santib��ez" <jms@nospam.nivel5.cl> escribi� en el mensaje
news:Xns9663CAD8A4E7Ejmsnews@200.27.221.71...
> En el cap�tulo anterior (news:d77tav$3ju$1@news1.nivel5.cl), "Rick_oj"
> <rick_oj@[sin-esto]tutopia.com> dijo:
>
> > 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
>
> form[i] son elementos dentro del form "form"...
> form["campo"] es el elemento campo del form "form"...
> forms[i] es el i-esimo form en el documento...
> forms['frmMio'] es el form cuyo name sea "frmMio"...
>
> eso...
>
> (y puede que si hay un �nico form, lo asuma por defecto, pero...)

claro con el form que proble se llamaba form aunque me gusta mas
document.nombreform.elements[x]
>
>
>
> -- 
>                            Jose M. Santiba�ez A.
>                              <jms@nivel5.cl>
>                            <http://caos.cl/jms>
Technical Details
Message-ID: <d7an8p$1jh$1@news1.nivel5.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.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> <d769fc$n1o$1@news1.nivel5.cl> <d77tav$3ju$1@news1.nivel5.cl> <Xns9663CAD8A4E7Ejmsnews@200.27.221.71>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,47254f424c5fc3b1
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.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: Sat, 28 May 2005 17:21:19 -0400
Organization: Varios
Lines: 48
Message-ID: <d7an8p$1jh$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> <d77tav$3ju$1@news1.nivel5.cl> <Xns9663CAD8A4E7Ejmsnews@200.27.221.71>
NNTP-Posting-Host: pc-97-201-120-200.cm.vtr.net
X-Trace: news1.nivel5.cl 1117315161 1649 200.120.201.97 (28 May 2005 21:19:21 GMT)
X-Complaints-To: news@news1.nivel5.cl
NNTP-Posting-Date: Sat, 28 May 2005 21:19:21 +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