04-25-2020, 09:14 PM
I have been using the Web Browser Widget to display a Radar for the last couple of years, and had no issues with it, but I am thinking something might of changed in one of the last betas.
What I have on the template is a Web Browser Widget and it reads an html file with a SetURL command in the OnPreLoad - This all displays fine.
On the same template I have a slider, that based on where it is, calls another SetURL command which loads a different .html file. In this case, it will just show a black screen in the widget. I can refresh it, and it will then load the OnPreLoad SetURL and display the current setting that was changed in the slider.
No errors are in the logs, it just looks like it doesn't fully execute the SetURL.
Here is the code for the OnPreLoad:
Here is the code for when the slider is moved:
What I have on the template is a Web Browser Widget and it reads an html file with a SetURL command in the OnPreLoad - This all displays fine.
On the same template I have a slider, that based on where it is, calls another SetURL command which loads a different .html file. In this case, it will just show a black screen in the widget. I can refresh it, and it will then load the OnPreLoad SetURL and display the current setting that was changed in the slider.
No errors are in the logs, it just looks like it doesn't fully execute the SetURL.
Here is the code for the OnPreLoad:
Code:
If Not
GlobalVars::Exists
P1=GVar:WeatherRadarZoom
GlobalVars::CreateVariable
P1=GVar:WeatherRadarZoom
P2=Int
P3=Range: 1, 10
P4=4
Radar::SetURL
P1=http://cqcserver:8003/Radar/RadarBig_Zoom4_Aerial.html
Else
LocalVars::SetVariable
P1=LVar:Webpage
P2=http://cqcserver:8003/Radar/RadarBig_Zoom%(GVar:WeatherRadarZoom)_Aerial.html
Radar::SetURL
P1=%(LVar:Webpage)
End
Here is the code for when the slider is moved:
Code:
LocalVars::SetVariable
P1=LVar:Webpage
P2=http://cqcserver:8003/Radar/RadarBig_Zoom%(GVar:WeatherRadarZoom)_Aerial.html
Radar::SetURL
P1=%(LVar:Webpage)