From: Raymond I. <xw...@ya...> - 2003-06-06 20:08:54
|
Hi, The fully qualified name is dynapi.gui.LoadPanel not dynapi.gui.loadpanel you can also use dynapi.library.include('LoadPanel'); Also remember to add the following between the <body></body> tags: <script> dynapi.document.insertAllChildren(); </script> -- Raymond Irving --- Cristian Grigoriu <cri...@pr...> wrote: > I have tried a simple test of loadpanel: > > <html> > <head> > <title>testing loadpanel</title> > <script language="JavaScript" > src="dynapi3x/src/dynapi.js"></script> > <script language="JavaScript"> > dynapi.library.setPath('/dynapi3x/src/'); > dynapi.library.include('dynapi.library'); > dynapi.library.include('dynapi.api'); > dynapi.library.include('dynapi.debug'); > dynapi.library.include('dynapi.gui.loadpanel'); > > lp = new LoadPanel('tobeloaded.htm'); > lp.setLocation(100, 100); > lp.setSize(300, 300); > lp.setBgColor('#667788'); > dynapi.document.addChild(lp); > </script> > </head> > > <body style="overflow:hidden"> > <a > href="javascript:lp.setURL('tobeloaded.htm')">load</a> > </body> > </html> > > I get an LoadPanel not defined error and DynAPI > debugger shows this message: > > Library Error: no library map for loadpanel > ------------------------------ > Click "?" for help > ------------------------------ > > loaded [dynapi.library] > loaded [dynapi.debug] > loaded [dynapi.functions.Image] > loaded [dynapi.api.DynEvent] > loaded [dynapi.api.EventObject] > loaded [dynapi.api.DynElement] > loaded [dynapi.api.DynDocument] > loaded [dynapi.api.DynLayerBase] > loaded [dynapi.api.DynLayer] > loaded [dynapi.api.MouseEvent] > > What seems to be the problem? > > Thank you, > > Grig > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of > TotalView, The best > thread debugger on the planet. Designed with thread > debugging features > you've never dreamed of, try TotalView 6 free at > www.etnus.com. > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > https://lists.sourceforge.net/lists/listinfo/dynapi-help __________________________________ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com |