Give us feedback
iframe-interaction
Web icon

Iframe Interaction

Stable version 1.0.2 (Compatible with OutSystems 11)
Uploaded on 29 March 2022 by 
5.0
 (3 ratings)
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;