From: David v. C. <da...@on...> - 2000-11-28 09:47:21
|
Pascal, thank you for your reply. The situation is worse however :-(=20 Even just running this little snippet runs into an error ("DynDocument = is undefined"). <html> <head><title>DynAPI2 tutor - creating layers</title> <Script language=3D"Javascript" = src=3D"../dynacore.dynapi.2000.11.12/js/dynapi.js"></script> </head> <body> </body> </html> Thank you David ----- Original Message -----=20 From: Pascal Bestebroer=20 To: dyn...@li...=20 Sent: Tuesday, November 28, 2000 10:34 AM Subject: RE: [Dynapi-Help] Very Basic question Hi, =20 I think your mixing up versions, the tutorial was created for the = DynAPI code, but judging by the path your using your using my Dynacore = package.. so you should change the includes to =20 DynAPI.include('dynacore.*.*') =20 and not =20 DynAPI.include('dynapi.*.*') =20 greets, Pascal Bestebroer=20 pb...@oi...=20 http://www.oibv.com=20 -----Oorspronkelijk bericht----- Van: dyn...@li... = [mailto:dyn...@li...]Namens David van = Coevorden Verzonden: dinsdag 28 november 2000 10:31 Aan: dyn...@li... Onderwerp: [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: =20 <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 |