PDA

View Full Version : Before Ext.onReady() ??



Rocketman
5 Mar 2008, 2:35 PM
Normally you put all your code in the Ext.onReady(), I was wondering if there was an event before "ready".

Basically what I need to do is load some data prior to doing the rest of my code.

devnull
5 Mar 2008, 2:44 PM
what you would do there is put your code to load the data in an init function, then call the rest of your code from within its success function (assuming its an async request like ajax).
an application module design pattern would lend itself well to this approach.