PDA

View Full Version : Elements do not exist when load event called



Mtthw
3 Feb 2010, 7:50 AM
I'm running into an odd problem and wondering if there is a better solution for it. I'm adding a listener for the 'load' event a of a TreePanel and then trying to set some css on it. I found that if I use a setTimeout of 100ms it works fine but the child elements do not exist without the extra delay(at least in Firefox). Is there a different event I should be using? It is silly to have to use setTimeout like that.