From: Jesse V. <je...@6t...> - 2003-05-19 17:33:43
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> <title></title> </head> <body text="#000000" bgcolor="#ffffff"> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> <title></title> I got the source from CVS, and I'm trying to set up my existing DynAPI 2.5 stuff to work with it, but I'm getting errors that I don't understand.<br> <br> I have this:<br> <br> <script language="Javascript" src="../dynapi/src/dynapi.js"></script><br> <script language="JavaScript" src="../js/6thgear.js"></script><br> <br> In my 6thgear.js, I'm doing this at the top:<br> <br> DynAPI.library.setPath('../dynapi/src/');<br> DynAPI.library.include('dynapi.api.*');<br> DynAPI.library.include('dynapi.event.*');<br> DynAPI.library.include('dynapi.ext.inline.js');<br> <br> now if I do this, right after that:<br> <br> alert(dynapi.document.getWidth());<br> <br> I get this JS error:<br> <br> Error: dynapi.document has no properties<br> Source File: <a class="moz-txt-link-freetext" href="http://localhost/6thgear/js/6thgear.js">http://localhost/6thgear/js/6thgear.js</a><br> Line: 23<br> <br> I don't get it, when I look at the docs for 3.0, I see in the example that you're using dynapi.document to add the child layers. Why is it telling me that it has no properties?<br> <br> I was able to do this in 2.5 without a problem, what changed?<br> <br> Thanks in advance,<br> Jesse Vitrone<br> <br> </body> </html> |