diff --git a/src/WebDocs/wwwroot/app/functions/GetExternalFrameMessage/description.html b/src/WebDocs/wwwroot/app/functions/GetExternalFrameMessage/description.html new file mode 100644 index 00000000..c648da44 --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/GetExternalFrameMessage/description.html @@ -0,0 +1 @@ +
The GetExternalFrameMessage function is used to retrieve data from an external iframe using the postMessage API. This function sends a message to the specified iframe and waits for a response, then stores the received data in the specified data key. It enables secure communication between the parent window and child iframe content.
\ No newline at end of file diff --git a/src/WebDocs/wwwroot/app/functions/GetExternalFrameMessage/parameters.json b/src/WebDocs/wwwroot/app/functions/GetExternalFrameMessage/parameters.json new file mode 100644 index 00000000..5b8ae7ca --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/GetExternalFrameMessage/parameters.json @@ -0,0 +1,27 @@ +[ + { + "Name": "frameID", + "Description": "The ID of the iframe element to communicate with", + "Types": [ "text", "mustache" ], + "Optional": false + }, + { + "Name": "externalFunction", + "Description": "The tag or function name to be used in the message for identification purposes", + "Types": [ "text", "mustache" ], + "Optional": false + }, + { + "Name": "dataKey", + "Description": "The data key where the response data will be stored", + "Types": [ "datakey" ], + "Optional": false + }, + { + "Name": "isClone", + "Description": "Whether to clone the received data before storing it", + "Types": [ "boolean" ], + "Optional": true, + "DefaultValue": "false" + } +] \ No newline at end of file diff --git a/src/WebDocs/wwwroot/app/functions/GetExternalFrameMessage/samples/001/content.html b/src/WebDocs/wwwroot/app/functions/GetExternalFrameMessage/samples/001/content.html new file mode 100644 index 00000000..af5f7831 --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/GetExternalFrameMessage/samples/001/content.html @@ -0,0 +1,34 @@ + + + +This example demonstrates how to get data from an external iframe using postMessage communication.
+ +A sample that demonstrates GetExternalFrameMessage to retrieve data from an iframe. The example shows how to communicate with an external frame to get user data and store it in a data key.
\ No newline at end of file