Mashlet Events

franktylerva
User offline. Last seen 2 weeks 2 days ago. Offline
Joined: 04/15/2009
Points: 20

Is there a limitation on how many subscribers one can have for Mashlet Events?  For example, if I have 3 Mashlets on a page, one is the Publisher and the other two are Subscribers.  Only one of the Subscribers gets notified.  If I remove the Mashlet that does get notified, the one left starts to receive events.

Thanks,

Frank

0
Your rating: None
franktylerva
User offline. Last seen 2 weeks 2 days ago. Offline
Joined: 04/15/2009
Points: 20

I figured this one out on my own.  I had two DIV tags with the same id.  I changed this to use the getScopedName function to create unique ids.

-Frank

glenn.adams
User offline. Last seen 45 weeks 5 days ago. Offline
Joined: 05/18/2010
Points: 80

 I'd be interested in where you found same named DIVs and how getScopedName() fixed it.  I am having a problem getting the same event to be recognized by multiple mashlets, but I can't find any like named elements.  I am also having a problem getting one mashlet to respond to multiple events.  It is actually starting to look like I am having a problem with mashlet.json, as at the moment one of my mashlets is responding to an event it is no longer subscribed to.  I've started & stoped presto, the repository and even rebooted the computer, and the mashlet is still responding to the no longer subscribed event!