PDA

View Full Version : Equivalent to Yahoo.util.onAvailable for Ext standalone?



vmorale4
22 Oct 2007, 4:43 PM
Please forgive me if I'm missing something very obvious...

Is there an equivalent to the YUI functions onAvailable and onContentReady? I just found the Ext.EventManager.onDocumentReady method.

I have been playing around porting a YUI app to use Ext Standalone and there are some instances where I execute some function when a particular div has been found in the DOM (after an Ajax call dumps new html to the DOM). Is there an "Ext" way of doing this?...

vmorale4
11 Apr 2008, 11:17 AM
In case somebody else was wondering, after digging the source code, I finally found the answer! :D

The class is called Ext.lib.Event, and the method is also called onAvailable (This also applies for Ext 2.0)

Is there a particular reason why the Ext.lib classes are not documented?

tercero12
9 Sep 2009, 7:07 AM
Thanks vmorale4. I just came across this question and sure enough, it's there but undocumented (even in 3.x). If this is just an oversight, I'd really like for this to be documented (that way we know that it's a supported feature).