So.. how about a CLEAR answer.
Do I use DynAPI.document.elements['id'] ?
----- Original Message -----
From: "GORTSILAS ANDREAS" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 11:14 PM
Subject: RE: [Dynapi-Help] Get element other than div...
> First: the elements collection exists in the Dynacore distribution...
>
> Second: the all collection exists only in IE! not in netscape..
> myvar = DynAPI.document.all['form1'].text1.value; // NOT in netscape
>
> -----Original Message-----
> From: Doug Melvin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 25, 2001 1:21 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [Dynapi-Help] Get element other than div...
>
>
> To ALL: what IS the correct object collection to use?
> I've been using DynAPI.document.all[]
> but below is used .....element[]
>
> which is correct?
> If niether, then what IS correct?
>
> To GORTSILAS ANDREAS:
>
> Try specifing the form iself THEN the form object.
>
> i.e.
> <form name=form1>
> <input type=text name=text1>
> </form>
>
> myvar = DynAPI.document.all['form1'].text1.value;
>
> Doug
> ----- Original Message -----
> From: "GORTSILAS ANDREAS" <[EMAIL PROTECTED]>
> To: "Dynapi-Help Mailing List (E-mail)"
<[EMAIL PROTECTED]>;
> "[EMAIL PROTECTED] (E-mail)" <[EMAIL PROTECTED]>
> Sent: Wednesday, January 24, 2001 6:26 AM
> Subject: [Dynapi-Help] Get element other than div...
>
>
> > In the following page I want to handle the selected value of the select
> > element:
> >
> > <html>
> >
> > <head>
> > <title>Select example</title>
> >
> > <script language="Javascript1.1" src="/SrcDC/_Gen/dynapi.js"></script>
> > <script language="Javascript1.1">
> > DynAPI.setLibraryPath('/SrcDC/_Gen/')
> >
> > DynAPI.include('dynacore.api.*')
> > DynAPI.include('dynacore.ext.inline')
> >
> > DynAPI.onLoad=function() {
> > }
> > </script>
> > <script language="Javascript">
> > function DoOnChangeLang(){
> > alert(DynAPI.document.elements["selLang"]); // undefined!!
> >
> > alert(DynAPI.document.getElementById('selLang').options.item(0).value);
> //
> > undefined!!
> > // alert(document.all['selLang'].options.item(0).value); // works
only
> > in IE
> > // alert(frmMain.selLang.options.item(0).value); } // works
only
> > in IE
> > </script>
> > </head>
> >
> > <body>
> > <form id="frmMain">
> > <p>Language:<select id="selLang" onchange="DoOnChangeLang()"><option
> > value="Gr">Greek<option value="En">English</select></p>
> > </form>
> > </body>
> >
> > </html>
> >
> > How I can do this? Do you have any idea?
> >
> > What is your approach to similar tasks?
> >
> > Thanks
> >
> > Andreas
> >
> >
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
> >
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help