Communication Between jQuery UI Widgets
When writing user interfaces using jQuery I often need widgets to interact with each other. For example, an ajax status widget that displays a spinner when an ajax call starts, and displays a status message when the ajax call completes. This widget should be accessible by whatever other widgets are on the page. In the past I directly called methods from each widget, but this creates a lot of “glue code” and dependencies....