From: Doug M. <do...@cr...> - 2001-02-22 18:56:10
|
It does not seem that you are doing anything wrong. (imho) So, my guess would be that it is FP.. Possible solution: Switch: DynAPI.include('dynapi.api.browser.js') With: <script language="JavaScript1.2" src="../src/lib/api/browser.js"></script> do this for all of the includes and it may work. You could do this in FP and use normal includes when not in FP. No promisses tho.. Tip for converting from .include's to <script>'s 'dynapi.api.browser.js' translates into: LibraryPath + "api/browser.js" or : '../src/lib/api/browser.js' > Hey, > I have looked around in the archives and have not come across an answer. > Maybe it's not there or I just missed it...anyway...I have just downloaded > DynAPI II (dynapi-2001-01-25), and imported all of the source files into my > existing project which is in MS FrontPage 98. When I try to preview the > following, I get an error stating that DynLayer is undefined (Line: > myLayer=new DynLayer()). If I load the same page from outside FP, it works > fine. It seems pretty evident to me that FP is having a hard time with the > js code. Can anyone provide insight or am I just hosed? > > Thanks, > Randy > > <html><head><title>New Page 1</title> > <script language="JavaScript1.2" src="../src/dynapi.js"></script> > <script language="JavaScript1.2"> > DynAPI.setLibraryPath('../src/lib/') > DynAPI.include('dynapi.api.browser.js') > DynAPI.include('dynapi.api.dynlayer.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> > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com > > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > --- Outgoing mail is certified Virus Free by AVG Free Edition Download at: http://www.grisoft.com/html/us_index.cfm Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.231 / Virus Database: 112 - Release Date: 2/12/01 |