Created on 08 November 2020
icon_unfollowing
Login to follow
iframe-interaction

Iframe Interaction

Stable version 1.0.2 (Compatible with OutSystems 11)
Uploaded on 29 March 2022 by 
iframe-interaction

Iframe Interaction

Documentation
1.0.2

Setting up communication (Cross-Domain):

-In Parent Window: 

  • To dispatch events:
    • Use the web block ParentToIframeEventDispacherFunctionCrossDomain inside of the page, only once;
    • Use the Server Action DispatchParentEventCrossDomain to dispatch an event;


-In Iframe:

  • To dispatch events:
    • Use the web block IframeToParentEventDispacherFunctionCrossDomain inside of the page, only once;
    • Use the Server Action DispatchIframeEventCrossDomain to dispatch an event;


-Both In Iframe or Parent:

  • To listen to events:
    • Use one web block IframeOrParentEventListenerCrossDomain for the screen with a list of events you want to respond to, the button associated to it and the input to fill with the response if needed; 




Setting up communication (Same-Domain only):

-In Parent Window: 

  • To dispatch events:
    • Use the web block ParentToIframeEventDispacherFunction inside of the page, only once;
    • Use the Server Action DispatchParentEvent to dispatch an event;


-In Iframe:

  • To dispatch events:
    • Use the web block IframeToParentEventDispacherFunction inside of the page, only once;
    • Use the Server Action DispatchIframeEvent to dispatch an event;


-Both In Iframe or Parent:

  • To listen to events:
    • Use one web block IframeOrParentEventListener for each event you want to respond to, the button associated to it and the input to fill with the response if needed; 



1.0.1

Setting up communication (Same-Domain only):

-In Parent Window: 

  • To dispatch events:
    • Use the web block ParentToIframeEventDispacherFunction inside of the page, only once;
    • Use the Server Action DispatchParentEvent to dispatch an event;


-In Iframe:

  • To dispatch events:
    • Use the web block IframeToParentEventDispacherFunction inside of the page, only once;
    • Use the Server Action DispatchIframeEvent to dispatch an event;


-Both In Iframe or Parent:

  • To listen to events:
    • Use one web block IframeOrParentEventListener for each event you want to respond to, the button associated to it and the input to fill with the response if needed; 



Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
Iframe Interaction has no dependencies.