From: <jav...@ya...> - 2000-11-28 09:39:55
|
Hi! I'm just an user too. And I have had the same problem. Don't worry. It's a version problem. Try to download the last version of the Dynacore distribution, then you won't get any error. (Sorry about my English, I'm Spanish... :) --- David van Coevorden <da...@on...> escribió: > Hi > > 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="Javascript" > src="../dynacore.dynapi.2000.11.12/js/dynapi.js"></script> > <Script language="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=function() { > myLayer=new 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 > > __________________________________________________ Do You Yahoo!? Yahoo! Shopping - Thousands of Stores. Millions of Products. http://shopping.yahoo.com/ |