Re: Accessing Form attributes instead of elements

Jean-Philippe Encausse
Fri, 21 Sep 2007 07:11:55 -0000

I didn''t knew this method ?
I find a solution: I did form.attributes[''name''].value it
works on IE and FF


On 9/21/07, Wizz <woutawizz-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
>
> isn''t that what the readAttribute method is for?
>
> form.readAttribute(''name'');
>
> On Sep 20, 12:04 pm, "Jean-Philippe Encausse"
<J...-vcK5r0oTKUrk1uMJSBkQmQ@public.gmane.org>
> wrote:
> > Hi,
> >
> > I''m sorry for this JavaScript Off topic question a little bit
tricky:
> >
> > I have an HML Form with:
> > - An input using name="name"
> > - An attibute name="formName"
> >
> > In JavaScript I would like to access the form''s attribute.
How to do that ?
> >
> > - form.name returns input
> > - form[''name''] returns input
> >
> > Any idea ?
> > Best regards and sorry for the off topic
> >
> > --
> > Jean-Philippe Encausse - Veille / R&D Jalios SA
> > Jp [at] encausse.net -http://www.encausse.com-http://www.jalias.com
> > GTalk: jp.encausse [at] gmail.com - SMS: sms [at] jp.encausse.net
> > Mob: +33 6 82 12 56 99 - Job: +33 1 39 23 92 83 - Tel: +33 1 39 18 90
15
> > Do it Once, Use it Twice ~ Do it Twice, Make It Once
>
>
> >
>


--
Jean-Philippe Encausse - Veille / R&D Jalios SA
Jp [at] encausse.net - http://www.encausse.com - http://www.jalias.com
GTalk: jp.encausse [at] gmail.com - SMS: sms [at] jp.encausse.net
Mob: +33 6 82 12 56 99 - Job: +33 1 39 23 92 83 - Tel: +33 1 39 18 90 15
Do it Once, Use it Twice ~ Do it Twice, Make It Once