NOTE: As of July 12, 2009, this blog has been discontinued and replaced by the new Thought Delimited blog. All of the entries in this blog can be found there, along with new posts.

jQuery Plugin Fling Lets You Set Up Flex-like Event Listeners

I was checking Twitter on my iPod Touch when I cam across a tweet from the jQuery Twitter account about a plugin called Fling.

The purpose of Fling is to make it easier to manage multiple triggers and cascading events. Fling lets you create a named event, then subscribe multiple functions to that event. When the named event is published, those subscribed events then fire in sequence.

It reminded me of how Flex allows you to set up multiple event listeners and use event bubbling to trigger multiple events based off of a single action.

Comments
Yeah, great to see a simple but effective method of dealing with application events in the true jQuery fashion :)
# Posted By Justin Carter | 12/7/08 3:18 PM
thanks! great article. hope many people will find it useful. like I did. have used to find great blogs with useful pieces of information by http://torrents.rapid4me.com search engine, but always search for smth more. really glad to find good ones.
# Posted By edward | 9/23/09 10:34 AM
Turns out I was wrong: you will move items from the list of children to the list of parents ... but I had to drag the child at all on the list of parents for a while before jQuery would react and change of the primary elements to make room for the child (so I thought I was not working before).

Thus, while doing the job, not seem to work too well, I do not think that a user will be willing to wait to be allowed to leave the subject of the child.

But I would say try it for yourself and see if perhaps there is some trick to get it to work well: it is possible to see if adding borders around the list items will help provide a visual cue that a subject must be drawn to get it to drop.
<a href="http://www.orkutscrap.org/">Orkut Scraps</a>
# Posted By paul | 1/15/10 6:33 PM
Yeah, great to see a simple but effective method of dealing with application events in the true jQuery fashion :)
# Posted By buy celebrex | 1/16/10 5:39 AM
BlogCFC was created by Raymond Camden. This blog is running version 5.1.004.