I am trying to load an external website inside a Web Frame widget in a ThingWorx Mashup.
I added the URL in the URL property of the Web Frame widget:
However, when I open the mashup, the page does not load and the widget appears blank.
What I have already checked:
The URL works correctly when opened directly in the browser.
The Mashup loads successfully in ThingWorx
The URL is added correctly in the Web Frame widget properties.
Any guidance or suggestions would be greatly appreciated.
Solved! Go to Solution.
One possible reason is that some external websites block being loaded inside an iframe, which is what the Web Frame widget uses internally. In such cases the widget will appear blank even though the URL works directly in the browser.
As an alternative, you can use the Navigation function in ThingWorx instead of the Web Frame widget.
Create a new Navigation and set:
Redirect To: URL
URL: your external website link
Target Window Type: depending on your use case:
Replace – opens in the same tab
New – opens in a new tab
Popup – opens in a popup window
Fullscreen – opens the page in fullscreen
This approach avoids iframe restrictions and usually works reliably for external URLs.
One possible reason is that some external websites block being loaded inside an iframe, which is what the Web Frame widget uses internally. In such cases the widget will appear blank even though the URL works directly in the browser.
As an alternative, you can use the Navigation function in ThingWorx instead of the Web Frame widget.
Create a new Navigation and set:
Redirect To: URL
URL: your external website link
Target Window Type: depending on your use case:
Replace – opens in the same tab
New – opens in a new tab
Popup – opens in a popup window
Fullscreen – opens the page in fullscreen
This approach avoids iframe restrictions and usually works reliably for external URLs.
Okay
Thanks a lot
