how to get JavaScript event notification without iFrame
Monday, December 4, 2023 at 05:08pmHi,
would you please share the code sample how to get JavaScript event notification without iFrame? i only can download the code with iFrame from https://community.onespan.com/documentation/onespan-sign/codeshare/esignlive-event-notifier
thanks,
Cindy
Reply to: how to get JavaScript event notification without iFrame
Tuesday, December 5, 2023 at 10:56amHi Cindy,
Thanks for your post!
From the best of my knowledge, I doubt you can receive JS notification without using an embedding method such as an iFrame or a similar mechanism like iOS/Android webview. The reason for this is that the code responsible for sending messages from the embedded content to its parent window typically looks like below:
window.parent.postMessage(event, origin);
This implies that there needs to be a connection or relationship between the parent window and the embedded iframe for notifications to be received.
Duo