Search code examples
eventsevent-handlingdojodom-events

How to raise a global event in dojo?


I am trying to raise an event to all of the widgets that catch it. I have an authentication widget and other widgets that depend on the fact that the user is logged in. I would like to raise an event to all of those widgets when a user is logged in without connecting them manually. How can it be done?


Solution

  • Try dojo.publish and dojo.subscribe

    Perhaps this is a better link