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

Reply via email to