diff --git a/src/WebDocs/wwwroot/app/functions/GetExternalFrame/description.html b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/description.html new file mode 100644 index 00000000..436fed50 --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/description.html @@ -0,0 +1 @@ +

The GetExternalFrame function retrieves data from an external iframe by calling a specified function within that iframe and storing the result in a data key. This function enables communication between the main page and embedded iframes, allowing you to get data from external content.

\ No newline at end of file diff --git a/src/WebDocs/wwwroot/app/functions/GetExternalFrame/parameters.json b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/parameters.json new file mode 100644 index 00000000..cf0115a5 --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/parameters.json @@ -0,0 +1,27 @@ +[ + { + "Name": "frameID", + "Description": "The ID of the iframe element from which to retrieve data", + "Types": [ "text", "mustache" ], + "Optional": false + }, + { + "Name": "externalFunction", + "Description": "The name of the function to call within the iframe to retrieve data", + "Types": [ "text", "mustache" ], + "Optional": false + }, + { + "Name": "dataKey", + "Description": "The data key where the retrieved data will be stored", + "Types": [ "text", "mustache" ], + "Optional": false + }, + { + "Name": "isClone", + "Description": "Whether to clone the retrieved data before storing it", + "Types": [ "boolean" ], + "Optional": true, + "DefaultValue": "false" + } +] \ No newline at end of file diff --git a/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/content.html b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/content.html new file mode 100644 index 00000000..7667cd1a --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/content.html @@ -0,0 +1,36 @@ + + + + + Function - GetExternalFrame + + + Function - GetExternalFrame +
+
+

GetExternalFrame Example

+ + + + + + + + +
+

Data Retrieved from Frame:

+ +
+
+

No data retrieved yet. Click the button above to get data from the external frame.

+
+ + +

Note: This example demonstrates calling a GetSampleData() function inside the iframe above with ID "myExternalFrame".

+
+ + \ No newline at end of file diff --git a/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/description.html b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/description.html new file mode 100644 index 00000000..02370d47 --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/GetExternalFrame/samples/001/description.html @@ -0,0 +1 @@ +

A sample demonstrating how to use GetExternalFrame to retrieve data from an external iframe by calling a function within that iframe and displaying the result

\ No newline at end of file diff --git a/src/WebDocs/wwwroot/app/shared/sampleIframe.html b/src/WebDocs/wwwroot/app/shared/sampleIframe.html new file mode 100644 index 00000000..1c424e74 --- /dev/null +++ b/src/WebDocs/wwwroot/app/shared/sampleIframe.html @@ -0,0 +1,25 @@ + + + + + Sample Iframe Content + + +

External Frame Content

+

This iframe contains sample data that can be retrieved by the parent window.

+ + + + \ No newline at end of file