Include the style.js before the other UI files



Pascal Bestebroer
[EMAIL PROTECTED]
http://www.dynamic-core.net 

> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Namens James Koennicke
> Verzonden: maandag 5 februari 2001 22:20
> Aan: Dynapi (E-mail)
> Onderwerp: [Dynapi-Help] Dynapi.theme.font is not an object
> 
> 
> OK, I'm new to this Dynapi stuff, but I figured it would take me 
> longer than
> 10 minutes to come up with a problem I couldn't solve. 8^)
> 
> I'm trying to load the Imgbutton from release 
> dynacore.2001.01.13. When I'm
> loading the page I get the following error "Dynapi.theme.font is not an
> object". Debugging shows that it is happening on line 31 of label.js
> 
> "var tmp=DynAPI.theme.font.align"
> 
> Here is the code I'm using to set up the button:
> 
> <Script language="Javascript">
> DynAPI.setLibraryPath('/vista/scripts/lib/')
> DynAPI.include('dynacore.api.*')
> DynAPI.include('dynacore.ui.label.js')
> DynAPI.include('dynacore.ui.button.js')
> DynAPI.include('dynacore.ui.imgbutton.js')
> DynAPI.include('dynacore.ui.dynimage.js')
> DynAPI.include('dynacore.ui.panel.js')
> DynAPI.include('dynacore.ui.popup.js')
> DynAPI.include('dynacore.ui.toolbar.js')
> DynAPI.include('dynacore.ui.treenode.js')
> DynAPI.include('dynacore.ui.style.js')
> 
> DynAPI.onLoad=function() {
>       // Code to build the tools
>       zoomIn=new Imgbutton('zoomIn',10,10,25,25,'zoomin','zoomin.gif')
>       DynAPI.document.addChild(zoomIn)
> }
> </script>
> 
> So, can anyone tell me what seems to be the problem?
> 
> James F. Koennicke
> Consultant
> Vista Information Technologies, Inc.
> 2195 Fox Mill Road
> Herndon, VA 20171
> 
> email: [EMAIL PROTECTED]
> ph: (703) 561-4132
> fax: (703) 561-4160
> 
> 
> 
> 
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
> 

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

Reply via email to