Namespace Sfdc.canvas.xd
Sfdc.canvas.xd
Defined in: xd.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
post(message, target_url, target)
Pass a message to the target url
|
|
receive(callback, source_origin)
|
|
remove()
Removes the message event listener
|
Method Detail
post(message, target_url, target)
Pass a message to the target url
- Parameters:
- {String} message
- The message to send
- {String} target_url
- Specifies what the origin of the target must be for the event to be dispatched.
- {String} target Optional
- The window that is the message's target. Defaults to the parent of the current window.
receive(callback, source_origin)
- Parameters:
- {Function} callback
- Function to run when the message event is received if the event origin is acceptable.
- {String} source_origin
- The origin of the desired events
remove()
Removes the message event listener