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> |
From: Raymond I. <xw...@ya...> - 2003-05-19 19:53:55
|
Hi Jesse, This solution should work. Note that the 6thgear.js file is included after the core APIs are included and that the APIs dont' use the .* extension any more: new extensions: dynapi.library.include('dynapi.api'); dynapi.library.include('dynapi.ext.DynLayerInline'); Please modify you code to reflect the following: <script language="Javascript" src="../dynapi/src/dynapi.js"></script> <script language="JavaScript"> dynapi.library.setPath('../dynapi/src/'); dynapi.library.include('dynapi.api'); dynapi.library.include('dynapi.ext.DynLayerInline'); </script> <script language="JavaScript" src="../js/6thgear.js"></script> <script language="JavaScript"> alert(dynapi.document.getWidth()); </script> -- Raymond Irving --- Jesse Vitrone <je...@6t...> wrote: --------------------------------- Hmm....as I described, I have my demo.php that includes dynapi.js, and6thgear.js It seems that if I try to use dynapi.document in my6thgear.js, it doesn't like it, but it's OK to use it furthur down inmy demo.php. This is probably just my lack of JS knowledge here, but, I'll askanyway: How come? Why isn't it available for me to use in my jsinclude? I was able to do this with 2.5, what changed? How can I workaround it? Thanks, Jesse -------- Original Message -------- Subject: DynAPI 3.0 Date: Mon, 19 May 2003 13:33:32 -0400 From: Jesse Vitrone <je...@6t...> To: dyn...@li... I got the source from CVS, and I'm trying to set up my existing DynAPI2.5 stuff to work with it, but I'm getting errors that I don'tunderstand. I have this: <script language="Javascript"src="../dynapi/src/dynapi.js"></script> <script language="JavaScript"src="../js/6thgear.js"></script> In my 6thgear.js, I'm doing this at the top: DynAPI.library.setPath('../dynapi/src/'); DynAPI.library.include('dynapi.api.*'); DynAPI.library.include('dynapi.event.*'); DynAPI.library.include('dynapi.ext.inline.js'); now if I do this, right after that: alert(dynapi.document.getWidth()); I get this JS error: Error: dynapi.document has no properties Source File: http://localhost/6thgear/js/6thgear.js Line: 23 I don't get it, when I look at the docs for 3.0, I see in the examplethat you're using dynapi.document to add the child layers. Why is ittelling me that it has no properties? I was able to do this in 2.5 without a problem, what changed? Thanks in advance, Jesse Vitrone -------------------------------------------------------This SF.net email is sponsored by: ObjectStore.If flattening out C++ or Java code to make your application fit in arelational database is painful, don't do it! Check out ObjectStore.Now part of Progress Software. http://www.objectstore.net/sourceforge_______________________________________________Dynapi-Help mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/dynapi-help __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |
From: Jesse V. <je...@6t...> - 2003-05-19 20:42:02
|
Raymond, Thanks for the response. I noticed that the way the library includes worked had changed, and I had changed it locally, but that didn't help. The code that you have listed below works, but my 6thgear.js needs to use dynapi.document. So what I'm doing, is that I'm calling: dynapi.library.setPath('../dynapi/src/'); dynapi.library.include('dynapi.api'); dynapi.library.include('dynapi.ext.DynLayerInline'); from inside my 6thgear.js to set things up. Then, later on in my 6thgear.js, I need to call dynapi.document.getWidth(); And that's when I'm getting the errors. I put an alert in the setPath method to make sure that was getting called, and it is. And the error isn't complaining about dynapi, it's complaining about dynapi.document. Shouldn't I be able to call dynapi.document from inside the included js? Does this have to do with the BeforeLoad creation stuff in the changelog? Thanks, Jesse Raymond Irving wrote: >Hi Jesse, > >This solution should work. Note that the 6thgear.js >file is included after the core APIs are included and >that the APIs dont' use the .* extension any more: > >new extensions: > >dynapi.library.include('dynapi.api'); >dynapi.library.include('dynapi.ext.DynLayerInline'); > >Please modify you code to reflect the following: > ><script language="Javascript" >src="../dynapi/src/dynapi.js"></script> ><script language="JavaScript"> > dynapi.library.setPath('../dynapi/src/'); > dynapi.library.include('dynapi.api'); > dynapi.library.include('dynapi.ext.DynLayerInline'); ></script> ><script language="JavaScript" >src="../js/6thgear.js"></script> ><script language="JavaScript"> > alert(dynapi.document.getWidth()); ></script> > > >-- >Raymond Irving > >--- Jesse Vitrone <je...@6t...> wrote: > >--------------------------------- > Hmm....as I described, I have my demo.php that >includes dynapi.js, and6thgear.js It seems that if I >try to use dynapi.document in my6thgear.js, it doesn't >like it, but it's OK to use it furthur down inmy >demo.php. > >This is probably just my lack of JS knowledge here, >but, I'll askanyway: How come? Why isn't it available >for me to use in my jsinclude? I was able to do this >with 2.5, what changed? How can I workaround it? > >Thanks, > Jesse > >-------- Original Message -------- Subject: > DynAPI 3.0 Date: Mon, 19 May >2003 13:33:32 -0400 From: Jesse >Vitrone <je...@6t...> To: > dyn...@li... > >I got the source from CVS, and I'm trying to set up my >existing DynAPI2.5 stuff to work with it, but I'm >getting errors that I don'tunderstand. > >I have this: > > <script >language="Javascript"src="../dynapi/src/dynapi.js"></script> > <script >language="JavaScript"src="../js/6thgear.js"></script> > >In my 6thgear.js, I'm doing this at the top: > >DynAPI.library.setPath('../dynapi/src/'); >DynAPI.library.include('dynapi.api.*'); >DynAPI.library.include('dynapi.event.*'); >DynAPI.library.include('dynapi.ext.inline.js'); > >now if I do this, right after that: > >alert(dynapi.document.getWidth()); > >I get this JS error: > >Error: dynapi.document has no properties >Source File: http://localhost/6thgear/js/6thgear.js >Line: 23 > >I don't get it, when I look at the docs for 3.0, I see >in the examplethat you're using dynapi.document to add >the child layers. Why is ittelling me that it has no >properties? > >I was able to do this in 2.5 without a problem, what >changed? > >Thanks in advance, > Jesse Vitrone > >-------------------------------------------------------This >SF.net email is sponsored by: ObjectStore.If >flattening out C++ or Java code to make your >application fit in arelational database is painful, >don't do it! Check out ObjectStore.Now part of >Progress Software. >http://www.objectstore.net/sourceforge_______________________________________________Dynapi-Help >mailing >lis...@li...https://lists.sourceforge.net/lists/listinfo/dynapi-help > > >__________________________________ >Do you Yahoo!? >The New Yahoo! Search - Faster. Easier. Bingo. >http://search.yahoo.com > > >------------------------------------------------------- >This SF.net email is sponsored by: ObjectStore. >If flattening out C++ or Java code to make your application fit in a >relational database is painful, don't do it! Check out ObjectStore. >Now part of Progress Software. http://www.objectstore.net/sourceforge >_______________________________________________ >Dynapi-Help mailing list >Dyn...@li... >https://lists.sourceforge.net/lists/listinfo/dynapi-help > > |
From: Raymond I. <xw...@ya...> - 2003-05-19 21:53:31
|
--- Jesse Vitrone <je...@6t...> wrote: > Raymond, > Thanks for the response. I noticed that the way > the library > includes worked had changed, and I had changed it > locally, but that > didn't help. The code that you have listed below > works, but my > 6thgear.js needs to use dynapi.document. So what > I'm doing, is that I'm > calling: > > dynapi.library.setPath('../dynapi/src/'); > dynapi.library.include('dynapi.api'); > dynapi.library.include('dynapi.ext.DynLayerInline'); > > from inside my 6thgear.js to set things up. > Then, later on in my 6thgear.js, I need to call > > dynapi.document.getWidth(); > > And that's when I'm getting the errors. I put an > alert in the setPath > method to make sure that was getting called, and it > is. And the error > isn't complaining about dynapi, it's complaining > about dynapi.document. > > Shouldn't I be able to call dynapi.document from > inside the included > js? Does this have to do with the BeforeLoad > creation stuff in the > changelog? Ok, I see what you're doing. It's best to create something like a config.js file that will set the path and load all the necessary apis. dynapi.library.setPath('../dynapi/src/'); dynapi.library.include('dynapi.api'); dynapi.library.include('dynapi.ext.DynLayerInline'); then include your 6thgear.js file which will then contain the following: dynapi.onLoad(function(){ alert(dynapi.document.getWidth()); }); It's best to use dynapi.document.getWidth() after loads -- Raymond Iving > Thanks, > Jesse > > Raymond Irving wrote: > > >Hi Jesse, > > > >This solution should work. Note that the 6thgear.js > >file is included after the core APIs are included > and > >that the APIs dont' use the .* extension any more: > > > >new extensions: > > > >dynapi.library.include('dynapi.api'); > >dynapi.library.include('dynapi.ext.DynLayerInline'); > > > >Please modify you code to reflect the following: > > > ><script language="Javascript" > >src="../dynapi/src/dynapi.js"></script> > ><script language="JavaScript"> > > dynapi.library.setPath('../dynapi/src/'); > > dynapi.library.include('dynapi.api'); > > > dynapi.library.include('dynapi.ext.DynLayerInline'); > ></script> > ><script language="JavaScript" > >src="../js/6thgear.js"></script> > ><script language="JavaScript"> > > alert(dynapi.document.getWidth()); > ></script> > > > > > >-- > >Raymond Irving > > > >--- Jesse Vitrone <je...@6t...> > wrote: > > > >--------------------------------- > > Hmm....as I described, I have my demo.php that > >includes dynapi.js, and6thgear.js It seems that if > I > >try to use dynapi.document in my6thgear.js, it > doesn't > >like it, but it's OK to use it furthur down inmy > >demo.php. > > > >This is probably just my lack of JS knowledge here, > >but, I'll askanyway: How come? Why isn't it > available > >for me to use in my jsinclude? I was able to do > this > >with 2.5, what changed? How can I workaround it? > > > >Thanks, > > Jesse > > > >-------- Original Message -------- > Subject: > > DynAPI 3.0 Date: Mon, 19 > May > >2003 13:33:32 -0400 From: Jesse > >Vitrone <je...@6t...> > To: > > dyn...@li... > > > >I got the source from CVS, and I'm trying to set up > my > >existing DynAPI2.5 stuff to work with it, but I'm > >getting errors that I don'tunderstand. > > > >I have this: > > > > <script > >language="Javascript"src="../dynapi/src/dynapi.js"></script> > > <script > >language="JavaScript"src="../js/6thgear.js"></script> > > > >In my 6thgear.js, I'm doing this at the top: > > > >DynAPI.library.setPath('../dynapi/src/'); > >DynAPI.library.include('dynapi.api.*'); > >DynAPI.library.include('dynapi.event.*'); > >DynAPI.library.include('dynapi.ext.inline.js'); > > > >now if I do this, right after that: > > > >alert(dynapi.document.getWidth()); > > > >I get this JS error: > > > >Error: dynapi.document has no properties > >Source File: http://localhost/6thgear/js/6thgear.js > >Line: 23 > > > >I don't get it, when I look at the docs for 3.0, I > see > >in the examplethat you're using dynapi.document to > add > >the child layers. Why is ittelling me that it has > no > >properties? > > > >I was able to do this in 2.5 without a problem, > what > >changed? > > > >Thanks in advance, > > Jesse Vitrone > > > >-------------------------------------------------------This > >SF.net email is sponsored by: ObjectStore.If > >flattening out C++ or Java code to make your > >application fit in arelational database is painful, > >don't do it! Check out ObjectStore.Now part of > >Progress Software. > >http://www.objectstore.net/sourceforge_______________________________________________Dynapi-Help > >mailing > >lis...@li...https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > >__________________________________ > >Do you Yahoo!? > >The New Yahoo! Search - Faster. Easier. Bingo. > >http://search.yahoo.com > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: ObjectStore. > >If flattening out C++ or Java code to make your > application fit in a > >relational database is painful, don't do it! Check > out ObjectStore. > >Now part of Progress Software. > http://www.objectstore.net/sourceforge > >_______________________________________________ > >Dynapi-Help mailing list > >Dyn...@li... > >https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ObjectStore. > If flattening out C++ or Java code to make your > application fit in a > relational database is painful, don't do it! Check > out ObjectStore. > Now part of Progress Software. > http://www.objectstore.net/sourceforge > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |
From: Jesse V. <je...@6t...> - 2003-05-20 13:27:53
|
<!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"> Ahh, makes sense. Thanks again for your help.<br> <br> Got past that part, now, I'm stuck somewhere else. Looks like I can't do dynapi.document.all anymore? I'm creating a <div> with just regular dhtml code, and I used to be able to get at it using dynapi.document.all. <br> <br> Is there a way to get at it now? Or can I only get at objects that were created with the DynAPI?<br> <br> Thanks,<br> Jesse<br> <br> Raymond Irving wrote:<br> <blockquote type="cite" cite="mid...@we..."> <pre wrap="">--- Jesse Vitrone <a class="moz-txt-link-rfc2396E" href="mailto:je...@6t..."><je...@6t...></a> wrote: </pre> <blockquote type="cite"> <pre wrap="">Raymond, Thanks for the response. I noticed that the way the library includes worked had changed, and I had changed it locally, but that didn't help. The code that you have listed below works, but my 6thgear.js needs to use dynapi.document. So what I'm doing, is that I'm calling: dynapi.library.setPath('../dynapi/src/'); dynapi.library.include('dynapi.api'); dynapi.library.include('dynapi.ext.DynLayerInline'); from inside my 6thgear.js to set things up. Then, later on in my 6thgear.js, I need to call dynapi.document.getWidth(); And that's when I'm getting the errors. I put an alert in the setPath method to make sure that was getting called, and it is. And the error isn't complaining about dynapi, it's complaining about dynapi.document. Shouldn't I be able to call dynapi.document from inside the included js? Does this have to do with the BeforeLoad creation stuff in the changelog? </pre> </blockquote> <pre wrap=""><!----> Ok, I see what you're doing. It's best to create something like a config.js file that will set the path and load all the necessary apis. dynapi.library.setPath('../dynapi/src/'); dynapi.library.include('dynapi.api'); dynapi.library.include('dynapi.ext.DynLayerInline'); then include your 6thgear.js file which will then contain the following: dynapi.onLoad(function(){ alert(dynapi.document.getWidth()); }); It's best to use dynapi.document.getWidth() after loads -- Raymond Iving </pre> <blockquote type="cite"> <pre wrap="">Thanks, Jesse Raymond Irving wrote: </pre> <blockquote type="cite"> <pre wrap="">Hi Jesse, This solution should work. Note that the 6thgear.js file is included after the core APIs are included </pre> </blockquote> <pre wrap="">and </pre> <blockquote type="cite"> <pre wrap="">that the APIs dont' use the .* extension any more: new extensions: dynapi.library.include('dynapi.api'); </pre> </blockquote> <pre wrap="">dynapi.library.include('dynapi.ext.DynLayerInline'); </pre> <blockquote type="cite"> <pre wrap="">Please modify you code to reflect the following: <script language="Javascript" src="../dynapi/src/dynapi.js"></script> <script language="JavaScript"> dynapi.library.setPath('../dynapi/src/'); dynapi.library.include('dynapi.api'); </pre> </blockquote> <pre wrap="">dynapi.library.include('dynapi.ext.DynLayerInline'); </pre> <blockquote type="cite"> <pre wrap=""></script> <script language="JavaScript" src="../js/6thgear.js"></script> <script language="JavaScript"> alert(dynapi.document.getWidth()); </script> -- Raymond Irving --- Jesse Vitrone <a class="moz-txt-link-rfc2396E" href="mailto:je...@6t..."><je...@6t...></a> </pre> </blockquote> <pre wrap="">wrote: </pre> <blockquote type="cite"> <pre wrap="">--------------------------------- Hmm....as I described, I have my demo.php that includes dynapi.js, and6thgear.js It seems that if </pre> </blockquote> <pre wrap="">I </pre> <blockquote type="cite"> <pre wrap="">try to use dynapi.document in my6thgear.js, it </pre> </blockquote> <pre wrap="">doesn't </pre> <blockquote type="cite"> <pre wrap="">like it, but it's OK to use it furthur down inmy demo.php. This is probably just my lack of JS knowledge here, but, I'll askanyway: How come? Why isn't it </pre> </blockquote> <pre wrap="">available </pre> <blockquote type="cite"> <pre wrap="">for me to use in my jsinclude? I was able to do </pre> </blockquote> <pre wrap="">this </pre> <blockquote type="cite"> <pre wrap="">with 2.5, what changed? How can I workaround it? Thanks, Jesse -------- Original Message -------- </pre> </blockquote> <pre wrap="">Subject: </pre> <blockquote type="cite"> <pre wrap=""> DynAPI 3.0 Date: Mon, 19 </pre> </blockquote> <pre wrap="">May </pre> <blockquote type="cite"> <pre wrap="">2003 13:33:32 -0400 From: Jesse Vitrone <a class="moz-txt-link-rfc2396E" href="mailto:je...@6t..."><je...@6t...></a> </pre> </blockquote> <pre wrap="">To: </pre> <blockquote type="cite"> <pre wrap=""> <a class="moz-txt-link-abbreviated" href="mailto:dyn...@li...">dyn...@li...</a> I got the source from CVS, and I'm trying to set up </pre> </blockquote> <pre wrap="">my </pre> <blockquote type="cite"> <pre wrap="">existing DynAPI2.5 stuff to work with it, but I'm getting errors that I don'tunderstand. I have this: <script </pre> </blockquote> <pre wrap="">language="Javascript"src="../dynapi/src/dynapi.js"></script> </pre> <blockquote type="cite"> <pre wrap=""> <script </pre> </blockquote> <pre wrap="">language="JavaScript"src="../js/6thgear.js"></script> </pre> <blockquote type="cite"> <pre wrap="">In my 6thgear.js, I'm doing this at the top: DynAPI.library.setPath('../dynapi/src/'); DynAPI.library.include('dynapi.api.*'); DynAPI.library.include('dynapi.event.*'); DynAPI.library.include('dynapi.ext.inline.js'); now if I do this, right after that: alert(dynapi.document.getWidth()); I get this JS error: Error: dynapi.document has no properties Source File: <a class="moz-txt-link-freetext" href="http://localhost/6thgear/js/6thgear.js">http://localhost/6thgear/js/6thgear.js</a> Line: 23 I don't get it, when I look at the docs for 3.0, I </pre> </blockquote> <pre wrap="">see </pre> <blockquote type="cite"> <pre wrap="">in the examplethat you're using dynapi.document to </pre> </blockquote> <pre wrap="">add </pre> <blockquote type="cite"> <pre wrap="">the child layers. Why is ittelling me that it has </pre> </blockquote> <pre wrap="">no </pre> <blockquote type="cite"> <pre wrap="">properties? I was able to do this in 2.5 without a problem, </pre> </blockquote> <pre wrap="">what </pre> <blockquote type="cite"> <pre wrap="">changed? Thanks in advance, Jesse Vitrone </pre> </blockquote> <pre wrap="">-------------------------------------------------------This </pre> <blockquote type="cite"> <pre wrap="">SF.net email is sponsored by: ObjectStore.If flattening out C++ or Java code to make your application fit in arelational database is painful, don't do it! Check out ObjectStore.Now part of Progress Software. </pre> </blockquote> <pre wrap=""><a class="moz-txt-link-freetext" href="http://www.objectstore.net/sourceforge_______________________________________________Dynapi-Help">http://www.objectstore.net/sourceforge_______________________________________________Dynapi-Help</a> </pre> <blockquote type="cite"> <pre wrap="">mailing </pre> </blockquote> <pre wrap=""><a class="moz-txt-link-abbreviated" href="mailto:lis...@li...https://lists.sourceforge.net/lists/listinfo/dynapi-help">lis...@li...https://lists.sourceforge.net/lists/listinfo/dynapi-help</a> </pre> <blockquote type="cite"> <pre wrap=""> __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. <a class="moz-txt-link-freetext" href="http://search.yahoo.com">http://search.yahoo.com</a> </pre> </blockquote> <pre wrap="">------------------------------------------------------- </pre> <blockquote type="cite"> <pre wrap="">This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make your </pre> </blockquote> <pre wrap="">application fit in a </pre> <blockquote type="cite"> <pre wrap="">relational database is painful, don't do it! Check </pre> </blockquote> <pre wrap="">out ObjectStore. </pre> <blockquote type="cite"> <pre wrap="">Now part of Progress Software. </pre> </blockquote> <pre wrap=""><a class="moz-txt-link-freetext" href="http://www.objectstore.net/sourceforge">http://www.objectstore.net/sourceforge</a> </pre> <blockquote type="cite"> <pre wrap="">_______________________________________________ Dynapi-Help mailing list <a class="moz-txt-link-abbreviated" href="mailto:Dyn...@li...">Dyn...@li...</a> </pre> </blockquote> <pre wrap=""><a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/dynapi-help">https://lists.sourceforge.net/lists/listinfo/dynapi-help</a> </pre> <blockquote type="cite"> <pre wrap=""> </pre> </blockquote> <pre wrap=""> </pre> </blockquote> <pre wrap=""><!---->------------------------------------------------------- </pre> <blockquote type="cite"> <pre wrap="">This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software. <a class="moz-txt-link-freetext" href="http://www.objectstore.net/sourceforge">http://www.objectstore.net/sourceforge</a> _______________________________________________ Dynapi-Help mailing list <a class="moz-txt-link-abbreviated" href="mailto:Dyn...@li...">Dyn...@li...</a> </pre> </blockquote> <pre wrap=""><!----><a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/dynapi-help">https://lists.sourceforge.net/lists/listinfo/dynapi-help</a> __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. <a class="moz-txt-link-freetext" href="http://search.yahoo.com">http://search.yahoo.com</a> ------------------------------------------------------- This SF.net email is sponsored by: ObjectStore. If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software. <a class="moz-txt-link-freetext" href="http://www.objectstore.net/sourceforge">http://www.objectstore.net/sourceforge</a> _______________________________________________ Dynapi-Help mailing list <a class="moz-txt-link-abbreviated" href="mailto:Dyn...@li...">Dyn...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/dynapi-help">https://lists.sourceforge.net/lists/listinfo/dynapi-help</a> </pre> </blockquote> </body> </html> |
From: Raymond I. <xw...@ya...> - 2003-05-20 13:39:29
|
I don't think the getAll() feature is supported in DynAPI 3.0. See the following examples for some ideas on news ways to create inline layers: dynapi.api.ext.inline.html dynapi.api.ext.inline-widget.html speedtest.dynlayer.inline-basic.html speedtest.dynlayer.inline-deep_nest-dom.html -- Raymond Irving --- Jesse Vitrone <je...@6t...> wrote: --------------------------------- Ahh, makes sense. Thanks again for your help. Got past that part, now, I'm stuck somewhere else. Looks like I can'tdo dynapi.document.all anymore? I'm creating a <div> with justregular dhtml code, and I used to be able to get at it usingdynapi.document.all. Is there a way to get at it now? Or can I only get at objects thatwere created with the DynAPI? Thanks, Jesse Raymond Irving wrote: --- Jesse Vitrone <je...@6t...> wrote: Raymond, Thanks for the response. I noticed that the waythe library includes worked had changed, and I had changed itlocally, but that didn't help. The code that you have listed belowworks, but my 6thgear.js needs to use dynapi.document. So whatI'm doing, is that I'm calling:dynapi.library.setPath('../dynapi/src/');dynapi.library.include('dynapi.api');dynapi.library.include('dynapi.ext.DynLayerInline');from inside my 6thgear.js to set things up.Then, later on in my 6thgear.js, I need to calldynapi.document.getWidth();And that's when I'm getting the errors. I put analert in the setPath method to make sure that was getting called, and itis. And the error isn't complaining about dynapi, it's complainingabout dynapi.document.Shouldn't I be able to call dynapi.document frominside the included js? Does this have to do with the BeforeLoadcreation stuff in the changelog? Ok, I see what you're doing. It's best to createsomething like a config.js file that will set the pathand load all the necessary apis.dynapi.library.setPath('../dynapi/src/');dynapi.library.include('dynapi.api');dynapi.library.include('dynapi.ext.DynLayerInline');then include your 6thgear.js file which will thencontain the following:dynapi.onLoad(function(){ alert(dynapi.document.getWidth());});It's best to use dynapi.document.getWidth() afterloads--Raymond Iving Thanks, JesseRaymond Irving wrote: Hi Jesse,This solution should work. Note that the 6thgear.jsfile is included after the core APIs are included and that the APIs dont' use the .* extension any more:new extensions:dynapi.library.include('dynapi.api'); dynapi.library.include('dynapi.ext.DynLayerInline'); Please modify you code to reflect the following:<script language="Javascript"src="../dynapi/src/dynapi.js"></script><script language="JavaScript"> dynapi.library.setPath('../dynapi/src/'); dynapi.library.include('dynapi.api'); dynapi.library.include('dynapi.ext.DynLayerInline'); </script><script language="JavaScript"src="../js/6thgear.js"></script><script language="JavaScript"> alert(dynapi.document.getWidth());</script>--Raymond Irving--- Jesse Vitrone <je...@6t...> wrote: --------------------------------- Hmm....as I described, I have my demo.php thatincludes dynapi.js, and6thgear.js It seems that if I try to use dynapi.document in my6thgear.js, it doesn't like it, but it's OK to use it furthur down inmydemo.php.This is probably just my lack of JS knowledge here,but, I'll askanyway: How come? Why isn't it available for me to use in my jsinclude? I was able to do this with 2.5, what changed? How can I workaround it?Thanks, Jesse-------- Original Message -------- Subject: DynAPI 3.0 Date: Mon, 19 May 2003 13:33:32 -0400 From: JesseVitrone <je...@6t...> To: dyn...@li... I got the source from CVS, and I'm trying to set up my existing DynAPI2.5 stuff to work with it, but I'mgetting errors that I don'tunderstand.I have this: <script language="Javascript"src="../dynapi/src/dynapi.js"></script> <script language="JavaScript"src="../js/6thgear.js"></script> In my 6thgear.js, I'm doing this at the top:DynAPI.library.setPath('../dynapi/src/');DynAPI.library.include('dynapi.api.*');DynAPI.library.include('dynapi.event.*');DynAPI.library.include('dynapi.ext.inline.js');now if I do this, right after that:alert(dynapi.document.getWidth());I get this JS error:Error: dynapi.document has no propertiesSource File: http://localhost/6thgear/js/6thgear.jsLine: 23I don't get it, when I look at the docs for 3.0, I see in the examplethat you're using dynapi.document to add the child layers. Why is ittelling me that it has no properties?I was able to do this in 2.5 without a problem, what changed?Thanks in advance, Jesse Vitrone -------------------------------------------------------This SF.net email is sponsored by: ObjectStore.Ifflattening out C++ or Java code to make yourapplication fit in arelational database is painful,don't do it! Check out ObjectStore.Now part ofProgress Software. http://www.objectstore.net/sourceforge_______________________________________________Dynapi-Help mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/dynapi-help __________________________________Do you Yahoo!?The New Yahoo! Search - Faster. Easier. Bingo.http://search.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: ObjectStore.If flattening out C++ or Java code to make your application fit in a relational database is painful, don't do it! Check out ObjectStore. Now part of Progress Software. http://www.objectstore.net/sourceforge _______________________________________________Dynapi-Help mailing lis...@li... https://lists.sourceforge.net/lists/listinfo/dynapi-help ------------------------------------------------------- This SF.net email is sponsored by: ObjectStore.If flattening out C++ or Java code to make yourapplication fit in arelational database is painful, don't do it! Checkout ObjectStore.Now part of Progress Software.http://www.objectstore.net/sourceforge_______________________________________________Dynapi-Help mailing lis...@li... https://lists.sourceforge.net/lists/listinfo/dynapi-help__________________________________Do you Yahoo!?The New Yahoo! Search - Faster. Easier. Bingo.http://search.yahoo.com-------------------------------------------------------This SF.net email is sponsored by: ObjectStore.If flattening out C++ or Java code to make your application fit in arelational database is painful, don't do it! Check out ObjectStore.Now part of Progress Software. http://www.objectstore.net/sourceforge_______________________________________________Dynapi-Help mailing lis...@li...https://lists.sourceforge.net/lists/listinfo/dynapi-help __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |
From: Jesse V. <je...@6t...> - 2003-05-21 10:26:36
|
Raymond, Ah, I hadn't really looking into what the inline stuff was. DynLayer.getInline is just what I needed. Thanks for pointing me in the right direction. Jesse Raymond Irving wrote: >I don't think the getAll() feature is supported in >DynAPI 3.0. See the following examples for some ideas >on news ways to create inline layers: > >dynapi.api.ext.inline.html >dynapi.api.ext.inline-widget.html > >speedtest.dynlayer.inline-basic.html >speedtest.dynlayer.inline-deep_nest-dom.html > > >-- >Raymond Irving > > > >--- Jesse Vitrone <je...@6t...> wrote: > >--------------------------------- > Ahh, makes sense. Thanks again for your help. > >Got past that part, now, I'm stuck somewhere else. >Looks like I can'tdo dynapi.document.all anymore? I'm >creating a <div> with justregular dhtml code, and I >used to be able to get at it usingdynapi.document.all. > > > Is there a way to get at it now? Or can I only get >at objects thatwere created with the DynAPI? > >Thanks, > Jesse > >Raymond Irving wrote: > >--- Jesse Vitrone <je...@6t...> wrote: > >Raymond, Thanks for the response. I noticed that >the waythe library includes worked had changed, and I >had changed itlocally, but that didn't help. The code >that you have listed belowworks, but my 6thgear.js >needs to use dynapi.document. So whatI'm doing, is >that I'm >calling:dynapi.library.setPath('../dynapi/src/');dynapi.library.include('dynapi.api');dynapi.library.include('dynapi.ext.DynLayerInline');from >inside my 6thgear.js to set things up.Then, later on >in my 6thgear.js, I need to >calldynapi.document.getWidth();And that's when I'm >getting the errors. I put analert in the setPath >method to make sure that was getting called, and itis. > And the error isn't complaining about dynapi, it's >complainingabout dynapi.document.Shouldn't I be able >to call dynapi.document frominside the included js? >Does this have to do with the BeforeLoadcreation stuff >in the changelog? > >Ok, I see what you're doing. It's best to >createsomething like a config.js file that will set >the pathand load all the necessary >apis.dynapi.library.setPath('../dynapi/src/');dynapi.library.include('dynapi.api');dynapi.library.include('dynapi.ext.DynLayerInline');then >include your 6thgear.js file which will thencontain >the following:dynapi.onLoad(function(){ >alert(dynapi.document.getWidth());});It's best to use >dynapi.document.getWidth() afterloads--Raymond Iving > >Thanks, JesseRaymond Irving wrote: > >Hi Jesse,This solution should work. Note that the >6thgear.jsfile is included after the core APIs are >included > >and > >that the APIs dont' use the .* extension any more:new >extensions:dynapi.library.include('dynapi.api'); > >dynapi.library.include('dynapi.ext.DynLayerInline'); > > >Please modify you code to reflect the >following:<script >language="Javascript"src="../dynapi/src/dynapi.js"></script><script >language="JavaScript"> >dynapi.library.setPath('../dynapi/src/'); >dynapi.library.include('dynapi.api'); > >dynapi.library.include('dynapi.ext.DynLayerInline'); > > ></script><script >language="JavaScript"src="../js/6thgear.js"></script><script >language="JavaScript"> >alert(dynapi.document.getWidth());</script>--Raymond >Irving--- Jesse Vitrone <je...@6t...> > > >wrote: > >--------------------------------- Hmm....as I >described, I have my demo.php thatincludes dynapi.js, >and6thgear.js It seems that if > >I > >try to use dynapi.document in my6thgear.js, it > >doesn't > >like it, but it's OK to use it furthur down >inmydemo.php.This is probably just my lack of JS >knowledge here,but, I'll askanyway: How come? Why >isn't it > >available > >for me to use in my jsinclude? I was able to do > >this > >with 2.5, what changed? How can I workaround >it?Thanks, Jesse-------- Original Message -------- > > >Subject: > > DynAPI 3.0 Date: Mon, 19 > >May > >2003 13:33:32 -0400 From: >JesseVitrone <je...@6t...> > > >To: > > dyn...@li... I got the >source from CVS, and I'm trying to set up > >my > >existing DynAPI2.5 stuff to work with it, but >I'mgetting errors that I don'tunderstand.I have this: > <script > >language="Javascript"src="../dynapi/src/dynapi.js"></script> > > > <script > >language="JavaScript"src="../js/6thgear.js"></script> > > >In my 6thgear.js, I'm doing this at the >top:DynAPI.library.setPath('../dynapi/src/');DynAPI.library.include('dynapi.api.*');DynAPI.library.include('dynapi.event.*');DynAPI.library.include('dynapi.ext.inline.js');now >if I do this, right after >that:alert(dynapi.document.getWidth());I get this JS >error:Error: dynapi.document has no propertiesSource >File: http://localhost/6thgear/js/6thgear.jsLine: 23I >don't get it, when I look at the docs for 3.0, I > >see > >in the examplethat you're using dynapi.document to > > >add > >the child layers. Why is ittelling me that it has > > >no > >properties?I was able to do this in 2.5 without a >problem, > >what > >changed?Thanks in advance, Jesse Vitrone > >-------------------------------------------------------This > > >SF.net email is sponsored by: ObjectStore.Ifflattening >out C++ or Java code to make yourapplication fit in >arelational database is painful,don't do it! Check out >ObjectStore.Now part ofProgress Software. > >http://www.objectstore.net/sourceforge_______________________________________________Dynapi-Help > > >mailing > >lis...@li...https://lists.sourceforge.net/lists/listinfo/dynapi-help > > >__________________________________Do you Yahoo!?The >New Yahoo! Search - Faster. Easier. >Bingo.http://search.yahoo.com > >------------------------------------------------------- > > >This SF.net email is sponsored by: ObjectStore.If >flattening out C++ or Java code to make your > >application fit in a > >relational database is painful, don't do it! Check > > >out ObjectStore. > >Now part of Progress Software. > >http://www.objectstore.net/sourceforge > >_______________________________________________Dynapi-Help >mailing lis...@li... > >https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > > > >------------------------------------------------------- > > >This SF.net email is sponsored by: ObjectStore.If >flattening out C++ or Java code to make >yourapplication fit in arelational database is >painful, don't do it! Checkout ObjectStore.Now part of >Progress >Software.http://www.objectstore.net/sourceforge_______________________________________________Dynapi-Help >mailing lis...@li... > >https://lists.sourceforge.net/lists/listinfo/dynapi-help__________________________________Do >you Yahoo!?The New Yahoo! Search - Faster. Easier. >Bingo.http://search.yahoo.com-------------------------------------------------------This >SF.net email is sponsored by: ObjectStore.If >flattening out C++ or Java code to make your >application fit in arelational database is painful, >don't do it! Check out ObjectStore.Now part of >Progress Software. >http://www.objectstore.net/sourceforge_______________________________________________Dynapi-Help >mailing >lis...@li...https://lists.sourceforge.net/lists/listinfo/dynapi-help > > > > >__________________________________ >Do you Yahoo!? >The New Yahoo! Search - Faster. Easier. Bingo. >http://search.yahoo.com > > >------------------------------------------------------- >This SF.net email is sponsored by: ObjectStore. >If flattening out C++ or Java code to make your application fit in a >relational database is painful, don't do it! Check out ObjectStore. >Now part of Progress Software. http://www.objectstore.net/sourceforge >_______________________________________________ >Dynapi-Help mailing list >Dyn...@li... >https://lists.sourceforge.net/lists/listinfo/dynapi-help > > |