Custom Widget - iFrame - Not loading

I am trying to utilize a Custom Widget (iFrame) to pull local weather conditions from the national weather service. I have input the URL of the iframe and clicked save. However, when I view the dash board, nothing loads for this widget.

I am not trying to pass any query parameters, I am simply trying to load a static page. Here is the URL I am trying to load:

https://forecast.weather.gov/MapClick.php?lat=29.962716800000067&lon=-98.25349859999994

Any thoughts as to why this will not load?

Hi Thomas,

You granted me access to your account and I’ve taken a look at your Custom Widget, and it seems that something is wrong.

I noticed that you don’t have any parameters in your Custom Widget. I suggest you take a look at the following docs:

- Custom Widget Parameters

- Custom Widget

- Custom Widget (iFrame) (How to build one yourself)

Let me know if this provides some enlightenment. I hope it helps!

Hi Phil,

Correct. We are simply trying to use this as an iFrame and load a website.

We have gone through the documents, but perhaps we are missing something. Is it possible to simply use the Custom Widget as an iFrame and load an external web page?

For example, I have something at https://www.test.com/custom.html I want this page to load on my widget which will display some information. No query parameters are required…

Hi Thomas,

I’ve sent you a version of your code with some changes that caused the widget not to work properly.

We’ve taken a look at your custom widget code and it seems there were two things missing in your code:

1. The following in the header:

We mentioned this in the documentation. Feel free to check it out.

2. And the window.TagoIO.ready() to start the communication and load the widget.

We mentioned this in the documentation. Feel free to check it out.

I hope it helps!