Newer Version Available
Creating a Canvas App Event
The following code example shows how to call the publish method to create a canvas app event. If you’re using a namespace, the event name must be prefaced by the namespace. For example, namespace.eventName.
1swfobject.registerObject("clippy.codeblock-0", "9");
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17Sfdc.canvas(function() {
18 sr = JSON.parse('<%=signedRequestJson%>');
19 Sfdc.canvas.client.publish(sr.client,
20 {name : "mynamespace.statusChanged", payload : {status : 'Completed'}});
21});