MobileCRM.Bridge.raiseGlobalEvent - Resconet/JSBridge GitHub Wiki

[v9.0] Raises the global event which can have listeners bound by other iFrames.

Arguments

Argument Type Description
eventName String Global event name.
args Object Any object that has to be passed to all event listeners. This object is stringified JSON and passed to another iFrame listening on the global event.

This example demonstrates how to raise a custom global event. Other iFrame can register the callback which will be then called with specified parameters. See onGlobalEvent for example of registering such an event.

MobileCRM.bridge.raiseGlobalEvent("MyCustomEvent", {
	testTitle: "My Title",
	testData: { aaa: 1, bbb: 2 },
	testDirectVal: 666,
});