http://jsfiddle.net/mvmvp/2/
This is Essentially what I would like to happen.
var Getter = new getImages();
// Check ig get Imates is complete.
//Is get Images complete?
//If so, move on, if not... check back later.
while(Getter.state == false) { wait a second.... then check again }
Now fire afterImagesLoaded();
On Jun 25, 11:48 am, nwhite <[email protected]> wrote:
> On Fri, Jun 25, 2010 at 11:19 AM, Paul Saukas <[email protected]> wrote:
> > good god that was typed to fast :) correction to basic English .
>
> > A callback by my understanding (self taught so be warned) is
>
> > Function B called on completion of Function A from within Function A .
>
> Whereas Function B is an argument passed to Function A.
>
> Both examples are using callbacks... domready, function(){..} is a callback,
> all the 'on' functions in Assets.images are callbacks that have been
> abstracted to an interface. However the way 'afterImagesLoaded' and
> 'updateProgress' are called are not true callbacks.
>
> http://docs.jquery.com/Types#Callback
>
>
>
>
>
> > On Fri, Jun 25, 2010 at 2:17 PM, Paul Saukas <[email protected]>wrote:
>
> >> I believe your looking for this .http://jsfiddle.net/SA2kQ/
>
> >> A callback by my understanding (self taught so be warned) is a function B
> >> called on completion of another function A from within Function A .
>
> >> Thus the move of afterImagesLoaded(); from the domready to the onComplete
> >> of getImages().