You can use:
var layer1 = this.document.all['layer1']
etc.
Which should work, but I think the problem has also been resolved in the
latest snapshot, this example is working:
http://dynapi.sourceforge.net/snapshot/src/dynapi/examples/dynapi.ext.inline
.htm

Cheers,
Richard Bennett

[EMAIL PROTECTED]
www.richardinfo.com
(Everything running on, and ported to DynAPI2.53)
visit the DynAPI homepage (and FAQ) ::
http://dynapi.sourceforge.net/dynapi/index.php?menu=1
Browse (and search) the mailinglist here:
http://www.mail-archive.com/index.php3?hunt=dynapi


----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 19 May, 2001 05:26
Subject: [Dynapi-Help] - Inline Layers


> When I attempted to use Inline layers, I got the error that "unidentified
is
> not a property of object" or something to that degree. Can't remember the
> exact error, but I know it means that whatever is attempting to access the
> object is not properly set up.
>
> Now this would normally be no problem simply go to the incorrect variable
and
> check/change it accordingly. The only problem with this is that it's in
the
> example files as well. So, finding the error using copy/paste doesn't
work..
> here's the layer and the code its accessing, as well as the HTML:
>
> ----skipped head portion----
> <script language="javascript">
> DynAPI.setLibraryPath('../src/lib/')
> DynAPI.include('dynapi.api.*')
> DynAPI.include('dynapi.ext.*')
> I may be missing an include, but you get the idea hopefully.. its from the
> example so it SHOULD be right to begin with...
>
> var layer1 = this.document.getAll()['layer1']
> var clayer1 = this.document.getAll()['clayer1']
> //problem layer so I won't go any further
>
> layer1.setVisible(true)
> layer1.setBgColor('#c0c0c0')
> clayer1.setVisible(true) //problem
>
> This unfortunately is what causes the problem.. it says there is no such
> thing as clayer1
>
> </script>
> </head>
>
>
>
> <div id="someDiv1" style="position:absolute;">
> <div id="clayer1" style="position:absolute; top:0; left:0;">Click
here</div>
> </div>
>
>
>
>
>
> If you don't understand what I'm talking about.. don't hesitate to respond
> and I'll be sure and include the entire code.... its in the examples, for
> inline layers.
>
>
> Cheers all,
> Vincent Calendo
>
> _______________________________________________
> 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

Reply via email to