cindy

how to get JavaScript event notification without iFrame

0 votes

Hi,

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

0 votes

Hi 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

 

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off