Extending Ajax Events for All Mankind 2.61 http://spkr8.com/t/1408

Description:

Like any good Javascript framework would, jQuery includes Ajax functionality into its core. In particular, though, jQuery has some interesting ways it approaches event handling with Ajax responses. We’re going to dive into this Ajax event mechanism, and see what fun we can have with extending it.

This talk will first review the various Ajax events and some common ways they are used. Then, we’ll investigate jQuery source code and see how each is accomplished. Armed with this knowledge, we’ll talk about some scenarios where you might want to extend these events with extra functionality, or even add your own custom Ajax events.

To move from the theoretical into the concrete, we will discuss two jQuery Ajax plugins I released, mpAjax and flXHRproxy, and look at how each needed in its own way to hook into the Ajax event mechanism and extend it.

Comments on this Talk

Me7-tiny Kyle Simpson, 13 Sep 06:09

This user has yet to validate her/his profile with LinkedIn. It is therefore simple to assume that she/he is but a charlatan or common hoaxster.

Stream mondayjblack, 13 Sep 15:27

This user has yet to validate her/his profile with LinkedIn. It is therefore simple to assume that she/he is but a charlatan or common hoaxster.

Next time, skip the superman and lolcats humor. I saw lots of people inching out the back door after those.

Stream grahamb, 14 Sep 13:21

This user has yet to validate her/his profile with LinkedIn. It is therefore simple to assume that she/he is but a charlatan or common hoaxster.

Don't try to be funny - the superman stuff etc. seemed forced and took a lot away from the information. The info presented was great and very useful.

Missing kirmcglone, 14 Sep 14:17

This user has yet to validate her/his profile with LinkedIn. It is therefore simple to assume that she/he is but a charlatan or common hoaxster.

I thought adding some jokes lightened things up a bit. People are already going to be somewhat restless after sitting for several hours, so breaking it up a bit is always nice. Granted, probably didn't need as many. But I appreciated the effort, nonetheless.

Me7-tiny Kyle Simpson, 15 Sep 16:18

This user has yet to validate her/his profile with LinkedIn. It is therefore simple to assume that she/he is but a charlatan or common hoaxster.

thank you all for the feedback. i will definitely take that into account for future presentations. to be honest, the corniness of the jokes was an attempt to break up monotony and a somewhat boring topic but without cursing. but i will tone it down in the future. :)

Missing abigaillautner, 04 Aug 13:34

This user has yet to validate her/his profile with LinkedIn. It is therefore simple to assume that she/he is but a charlatan or common hoaxster.

I have an application that uses Ajax.Request and its onSuccess event handler in lots of places.

I need to call a function (that will check the response) before all these onSuccess events fired. I tried using Ajax.Responders.register with onComplete event but it fires after Ajax.Request's onSuccess event. Any suggestions?

Thanks, Abigail - silver bullion bars

Have an account? Sign in.

Leave a Comment

Remember to keep it constructive! Identify strengths and areas for improvement, and make suggestions!

14 Ratings: 2.61

Delivery: 2.43

Content: 2.8

Your Rating: 2.5

I'll Rate It! I was there.

Last Five Ratings

Welcome to the SpeakerRate Beta! Have feedback? Let us know over at Get Satisfaction (but be nice).