cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

How can we pass parameters to an app which is rendered in IFrame. ?

vvaidya1
7-Bedrock

How can we pass parameters to an app which is rendered in IFrame. ?

Hi All,

 

We wanted to pass parameters to our application which is rendering in an iFrame of external application (build on angular). We wanted to utilize window.postMessage() API as part of iFrame contract where we can send information from external application to thingworx app.

 

 

Is it possible ? 

 

Thanks and regards,

Vishal Vaidya

ACCEPTED SOLUTION

Accepted Solutions

Just a couple ideas:

 

1. You could pass parameters in through the iframe URL.  Just construct the URL in a TWx service with your param values and bind it to the iframe

 

2.  For using the window.postMessage(), have you tried using an expression?  

 

Hope that helps! 

Nick

View solution in original post

2 REPLIES 2

Just a couple ideas:

 

1. You could pass parameters in through the iframe URL.  Just construct the URL in a TWx service with your param values and bind it to the iframe

 

2.  For using the window.postMessage(), have you tried using an expression?  

 

Hope that helps! 

Nick

slangley
23-Emerald II
(To:vvaidya1)

Hi @vvaidya1.

 

If the previous response allowed to find a solution to your issue, please mark it as the Accepted Solution for the benefit of others in the community.

 

Regards.

 

--Sharon

Announcements


Top Tags