From: Randy H. <ran...@ho...> - 2001-02-22 18:46:05
|
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 |
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 |
From: Pascal B. <pa...@dy...> - 2001-02-22 19:11:46
|
<complain mode> use dynapi-help for this :) </complain mode> Pascal Bestebroer pa...@dy... http://www.dynamic-core.net > -----Oorspronkelijk bericht----- > Van: dyn...@li... > [mailto:dyn...@li...]Namens Randy Hawkins > Verzonden: donderdag 22 februari 2001 19:47 > Aan: dyn...@li... > Onderwerp: [Dynapi-Dev] Using DynAPI II with Frontpage 98 problem > > > 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 > |
From: Robert R. <rra...@ya...> - 2001-02-22 21:10:43
|
Also, make sure you are setting the correct library path. It seems the files arent loaded, either because Frontpage's preview sucks or you just have the wrong library path set. -- // Robert Rainwater On 2/22/2001, 1:47:04 PM EST, Randy wrote about "[Dynapi-Dev] Using DynAPI II with Frontpage 98 problem": > 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 ---------------------- DynAPI Snapshots: http://dynapi.sourceforge.net/snapshot/ DynAPI Homepage: http://dynapi.sourceforge.net/ |