Hi
I have a problem with DynApi and a Frameset. I want to create a Frameset
with two documents in it. In one of these frames I want to create DynApi
Layers and the Script Code for the layer should be embedded into the parent
frameset-document. So I want to call a function which is embedded in the
Frameset from the frame document called "main" to create a layer in "main".
I read the help file: Using the Dynapi2 part 6 about Dynapi and frames but I
wasn't able to solve the problem. There seems to be no errors but there is
no layer presented in the internet explorer 5.5 and netscape 6.
Perhaps somebode can give me a hint?
Thanks
Marco
Here is the code of the different files:
______________
<html>
<head>
<title>Frameset</title>
<script language="Javascript" src="HTML/src/dynapi.js"></script>
<script language="JavaScript1.2" TYPE="text/javascript">
DynAPI.setLibraryPath('HTML/src/lib/');
DynAPI.include('dynapi.api.*');
DynAPI.include('dynapi.event.*');
</script>
<script>
function test() // DynAPI.onLoad = function()
{
alert("1"); //This works fine, but the following not
mainpage = new DynDocument(main);
testlayer = new DynLayer(null,100,100,100,100,'red')
mainpage.addChild(testlayer);
}
</script>
</head>
<frameset rows="90%,*" framespacing="0" border="0" frameborder="0">
<frame name="main" target="main" src="ml.htm">
<frame name="hidden" src="data.htm">
</frameset>
</html>
______________
<html>
<head>
<title>ml.htm</title>
</head>
<body bgcolor="#CCCCCC" onload="javascript:parent.test()">
</body>
</html>
**********************************************************************
As you are aware, e-mails sent via Internet can easily be prepared or
manipulated by third persons, For this reason we trust you will understand
that, for your own and our protection, we rule out the legal validity of the
foregoing statements and comments. The applicable regulations of OVSoftware
on the legal validity of declarations of intent of a binding nature remain
unaffected.
This message is confidential. It may also be privileged or otherwise
protected by legal rules. It may be unlawful for you to read, copy or use it
in anyway. If you have received it by mistake please let us know by reply
and then delete it from your system.
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help