From: Jesse V. <je...@6t...> - 2003-05-19 19:44:03
|
<!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"> Hmm....as I described, I have my demo.php that includes dynapi.js, and 6thgear.js It seems that if I try to use dynapi.document in my 6thgear.js, it doesn't like it, but it's OK to use it furthur down in my demo.php.<br> <br> This is probably just my lack of JS knowledge here, but, I'll ask anyway: How come? Why isn't it available for me to use in my js include? I was able to do this with 2.5, what changed? How can I work around it?<br> <br> Thanks,<br> Jesse<br> <br> -------- Original Message -------- <table cellpadding="0" cellspacing="0" border="0"> <tbody> <tr> <th valign="baseline" align="right" nowrap="nowrap">Subject: </th> <td>DynAPI 3.0</td> </tr> <tr> <th valign="baseline" align="right" nowrap="nowrap">Date: </th> <td>Mon, 19 May 2003 13:33:32 -0400</td> </tr> <tr> <th valign="baseline" align="right" nowrap="nowrap">From: </th> <td>Jesse Vitrone <a class="moz-txt-link-rfc2396E" href="mailto:je...@6t..."><je...@6t...></a></td> </tr> <tr> <th valign="baseline" align="right" nowrap="nowrap">To: </th> <td><a class="moz-txt-link-abbreviated" href="mailto:dyn...@li...">dyn...@li...</a></td> </tr> </tbody> </table> <br> <br> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"> <title></title> <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> |