Am getting the 'DynAPI' is undefined error message.  It appears that the
dynapi.js file where the DynAPI object is created is not getting loaded, but
the reference is correct as far as I can tell.  In case that is not the
problem, I have also checked to make sure I have all of the library files.
Additionally, I have checked to make sure the code matches that in the
examples.  And I have searched the web and DynAPI help site for others with
the similar problem but with no success.  Anybody know why I am getting this
error and any suggestions as to what to try?

version 2.53:

dynapi
        docs
        examples
        myfiles
                mytestfile.html
        src
                lib
                dynapi.js

It appears that I have all of the requisite library files.

The code in mytestfile.html is:

<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>

<script language="javascript" src="../src/dynapi.js"></script>
<script language="javascript">

DynAPI.setLibraryPath("../src/lib/");
DynAPI.include("dynapi.api.*");

DynAPI.onLoad = function() { // create dynlayer
�
�       myLayer = new DynLayer(); // make DynLayer object
        myLayer.setSize(200, 100); // set its size (width, height)
        myLayer.setBgColor("#c0c0c0"); // set its color
        myLayer.moveTo(150, 100); // set its position (x, y)
        myLayer.setHTML("<h1>Hello World!</h1>"); // add HTML content to myLayer
        DynAPI.document.addChild(myLayer); // and
��
}
</script>

</HEAD>
<BODY>

<h1>Creating a Dynlayer</h1>

</BODY>
</HTML>




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

Reply via email to