ke han wrote: > I need to add/remove and fire custom events. > As an intro example, I have a div with id "TabManager". TabManager > has inside a ul and li's much like others create tabs these days. I > want TabManager to be the central object which other components > listen on for events like "tab_changed('new_tab')". TabManager will > also have methods such as "query_tab()" and change_tab("homeTab").
There is nothing in jQuery to prevent you from inventing new event names eg: $(...).bind('tab_changed', ...); and $(...).trigger('tab_changed'); I'm not sure whether this is a good idea or not, but I've been (ab)using it anyway! Does any one here see any reason not to? - Mark Gibson. _______________________________________________ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/