It is not enough to use the server side dashlet web page to create these dynamic dashlets. In the browser, you need javascript logic to notify another change file. So Alfresco usually does this:
Javascript Dashlet A Browser:
YAHOO.Bubbling.fire("interDashletMessage", { message: "Hello World." });
Javascript Dashlet B Browser:
YAHOO.Bubbling.on("interDashletMessage", function(layer, args) { var message = args[1].message; alert(message);
This will send a message from character A to dashlet B using a special event called "interDashletMessage".
If your B icon displays only a few messages, this may be enough to send data using events. If this is more complicated, your dashlet A should first send the data to the repository, and then trigger the Refresh event, and dashlet B should update its contents from the repository. This will require several web scripts that you may need to write.
Florian
source share