in ns4, you cant access forms inside a layer just
using document.formname but 
document.layers.layername.document.formname
this could be little tricky, specially if you're dealing
with nested layers. 

fortunately, dynapi has provided us with a 
simple solution, just use the .doc property of
your dynlayer containing the form:

alert(myDynLayer.doc.selector.prov);

if you arent using dynapi, access the form in ns4 with 

var form = is.ns4?
document.layers.srollwin.document.layers.scrolltext.document.forms.selec
tor.prov : document;

it should do it
/martin

____________________________________

harald martin ström 
www.burnfield.com www.pluxemburg.com  

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED]] On Behalf Of Jurre
> Sent: den 14 februari 2002 12:02
> To: [EMAIL PROTECTED]
> Subject: [Dynapi-Help] Dynlayer Help needed!!
> 
> 
> hy,
> 
> I used de dynapi on my page to have a scrolling window for text.
> 
> I have the following in the HTML
> 
> <DIV name="srollwin">
>       <DIV name="scrolltext">
>               <FORM name="selector">
>                       <SELECT name="prov">
>                       </SELECT>
>               </FORM>
>       </DIV>
> </DIV>
>       
> The content of the SELECT must change. I do this by calling 
> the following 
> JSCRIPT Function:
> 
> function changeprov(ID)
> {
>  document.selector.prov.options.length=0;
>  for (var x=0; x < provs.length ; x++)
>  {
>   if ( ID == provs[x][2] )
>   {
>     
> document.selector.prov.options[document.selector.prov.options.
length] = 
> new Option(provs[x][0],provs[x][1]);
>   }
>  }
> document.selector.prov.selectedIndex=0;
> }
> 
> This works fine under IE but NS refuses to change the SELECT 
> contents. I 
> guess that NS needs another reference to the SELECT OBJECT 
> prov. But I just 
> can't find how I have to call the objects properties under 
> NS. Can someone 
> help me out here ????
> 
> 
> Jurre
> 
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dynapi-help
> 


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to