|
From: Raymond S. <dst...@or...> - 2000-11-28 09:41:19
|
Assuming your using the 11.12 distribution and assuming your placing =
your HTML file in the examples file...
try this...
<Script language=3D"Javascript" src=3D"../js/dynapi.js"></script>
<Script language=3D"Javascript">
DynAPI.setLibraryPath('../js/lib/')
DynAPI.include('dynacore.api.dynlayer.js')
DynAPI.include('dynacore.api.browser.js')
DynAPI.include('dynacore.api.dyndocument.js')
etc...
This assumes your using the 11.12 dynacore release, if not your using =
dynapi and just change last 3 to this...
DynAPI.include('dynapi.api.dynlayer.js')
DynAPI.include('dynapi.api.browser.js')
DynAPI.include('dynapi.api.dyndocument.js')
Cheers
----- Original Message -----=20
From: David van Coevorden=20
To: dyn...@li...=20
Sent: Tuesday, November 28, 2000 12:36 AM
Subject: [Dynapi-Help] Very Basic question
Hi=20
I am just starting to try and use the DynAPI and have a very basic =
question. I tried to execute the code snipped provided in the first =
tutorial, namely:
<html>
<head><title>DynAPI2 tutor - creating layers</title>
<Script language=3D"Javascript" =
src=3D"../dynacore.dynapi.2000.11.12/js/dynapi.js"></script>
<Script language=3D"Javascript">
DynAPI.setLibraryPath('../js/lib/')
DynAPI.include('dynapi.api.dynlayer.js')
DynAPI.include('dynapi.api.browser.js')
DynAPI.include('dynapi.api.dyndocument.js')
DynAPI.onLoad=3Dfunction() {
myLayer=3Dnew DynLayer()
myLayer.setSize(100,100)
myLayer.setBgColor('#c0c0c0')
myLayer.moveTo(100,100)
DynAPI.document.addChild(myLayer)
}
</script>
</head>
<body>
</body>
</html>
Every time I try to view this in a webbrowser I get the error:
"DynDocument is undefined"
I think i put the right paths and all. What's going on?
Any help appreciated,
David
|