jQuery Pub/Sub plugin code can be found at Gist


jQuery Pub/Sub demo 1: DOM nodes (ASYNC)

In this demo there are 6 jQuery DOM objects (5 black boxes and 1 console box). Click on the boxes to start publishing topics.

c1
c2
c3
c4
c5

OUTPUT CONSOLE


    jQuery Pub/Sub demo 2: JS Objects (SYNC)

    In this demo there are 2 JS objects (Speaker & Attendant) and 1 jQuery DOM Object (console).

    OUTPUT CONSOLE


      jQuery Pub/Sub demo 3: jQuery DOM Objects (2) (ASYNC)

      In this demo there are 2 jQuery DOM objects (nodelist of paragraphs & console).

      Paragraph 1

      Paragraph 2

      Paragraph 3

      OUTPUT CONSOLE