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
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev


----------------------
DynAPI Snapshots: http://dynapi.sourceforge.net/snapshot/
DynAPI Homepage: http://dynapi.sourceforge.net/



_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to