joer
08-24-2007, 04:42 AM
Hi,
I just started to have a look at extjs, and i luv what i see. However, there is a thing I would like to know before I get my hands dirty: is there a best practice how/where to initialize widgets? Is it all about Ext.onReady, or can widgets be initialized when loading (even when they depend on div to be created first).
I am currently working on a site that has the following layout:
a header, side bar and footer are all in a single php file, and the page with the content is loaded by simply include a file.
http://www.joer.se/design.gif
I would like to have a widget both in the side bar and in the content. How should the be initialized/loaded? At the bottom of the page, creating js loading function using php? Is it simply bad design and will not work with extjs? Since the side bar is having a widget, the load function must be placed in the main php file and not the included file..?
Confused...
thanx
I just started to have a look at extjs, and i luv what i see. However, there is a thing I would like to know before I get my hands dirty: is there a best practice how/where to initialize widgets? Is it all about Ext.onReady, or can widgets be initialized when loading (even when they depend on div to be created first).
I am currently working on a site that has the following layout:
a header, side bar and footer are all in a single php file, and the page with the content is loaded by simply include a file.
http://www.joer.se/design.gif
I would like to have a widget both in the side bar and in the content. How should the be initialized/loaded? At the bottom of the page, creating js loading function using php? Is it simply bad design and will not work with extjs? Since the side bar is having a widget, the load function must be placed in the main php file and not the included file..?
Confused...
thanx