How about this (JS - a callback via a closure):

jQuery.ajax({
 ...,
 success: function() {
  alert("it worked");
 }
});

or this (Groovy - an interface via a closure):

Collections.sort(myList, {o1, o2 -> o1.name.compareTo(o2.name)})

or this (AS - an event listener via a closure):

myButton.click = function():void { Application.alert("wow!"); };

cheers,
barneyb

On Fri, Sep 5, 2008 at 12:09 PM, Bryan Hogan <[EMAIL PROTECTED]> wrote:
> Thanks guys, I have done my research.  I was thinking that someone may be
> able to make it simpler with some examples of how they are using them.  It's
> all good.
>
>
>
> Bryan F. Hogan
> Product Manager
> eDonor(R) - Recruit, Retain, Repeat
> A Global Med Technologies(R) Company
>
> P  602.489.7844
> F  602.489.7801
> www.edonor.com
>
> The information contained in this electronic mail message, including all
> attachments hereto, is confidential information intended only for
> distribution to the individual(s) named above. If the reader of this message
> is not the intended recipient, you are hereby notified that any
> dissemination, distribution, use or copying of this  communication, and the
> information contained herein, is strictly prohibited. If you have received
> this communication in error, please immediately notify us by telephone at
> (602) 489-7800 and delete the original message. Thank you.
>
> ________________________________
>
> From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
> Adrian Moreno
> Sent: Friday, September 05, 2008 11:26 AM
> To: [email protected]
> Subject: [CFCDEV] Re: Closures and Callbacks
>
>
>
> Bryan,
>
> These should get you started:
>
> http://en.wikipedia.org/wiki/Closure_(computer_science)
>
> http://en.wikipedia.org/wiki/Callback_(computer_science)
>
> -- Adrian
>
> ________________________________
>
> From: "Bryan Hogan" <[EMAIL PROTECTED]>
> Sent: Friday, September 05, 2008 11:03 AM
> To: [email protected]
> Subject: [CFCDEV] Closures and Callbacks
>
> Hi All,
>
>
>
> I would like to better understand closures and callbacks.  If you have
> experience with this please provide a summary of what each is good for and a
> code sample in either CFML or Java.
>
>
>
> If I can see it done in a language I am familiar with it is easier for me to
> pick up rather than reading about it.
>
>
>
> Thanks in advance.
>
> Bryan F. Hogan
> Product Manager
> eDonor(R) - Recruit, Retain, Repeat
> A Global Med Technologies(R) Company
>
> P  602.489.7844
> F  602.489.7801
> www.edonor.com
>
> The information contained in this electronic mail message, including all
> attachments hereto, is confidential information intended only for
> distribution to the individual(s) named above. If the reader of this message
> is not the intended recipient, you are hereby notified that any
> dissemination, distribution, use or copying of this  communication, and the
> information contained herein, is strictly prohibited. If you have received
> this communication in error, please immediately notify us by telephone at
> (602) 489-7800 and delete the original message. Thank you.
>
>
>
>
> >
>



-- 
Barney Boisvert
[EMAIL PROTECTED]
http://www.barneyb.com/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CFCDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfcdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to