.element is done in the Dynacore release.. not the DynAPI..yet >:}
Pascal Bestebroer
[EMAIL PROTECTED]
http://www.dynamic-core.net
> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Namens Doug Melvin
> Verzonden: donderdag 25 januari 2001 0:21
> Aan: [EMAIL PROTECTED]
> Onderwerp: 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