Author Topic: "Weather Sticker" Widgets - Can URL link be disabled?  (Read 1129 times)

0 Members and 1 Guest are viewing this topic.

Offline havtrail

  • Senior Contributor
  • ****
  • Posts: 206
    • Haverford Weather Station
"Weather Sticker" Widgets - Can URL link be disabled?
« on: August 02, 2018, 12:49:50 PM »
We use the WU "Weather Sticker" widgets to display current conditions from our PWS on various webpages. Works wells, but one place we use them is a touchscreen kiosk display where we do not want people to be able to leave the intended display webpage. In other words, we do not want people to be able to "click" on the display widget with the touchscreen feature.

For this kiosk application, is there a way to display the widget but not have it act as a URL link that could take people to Weather Underground, and from there to who knows where?

Here's the Flash-based widget code, from the WU page:

<object width="290" height="130">
<param name="movie" value="http://www.wunderground.com/swf/pws_mini_rf_nc.swf?station=KPAHAVER17&freq=&units=english&lang=EN" />
<embed src="http://www.wunderground.com/swf/pws_mini_rf_nc.swf?station=KPAHAVER17&freq=&units=english&lang=EN" type="application/x-shockwave-flash" width="290" height="130" />
</object>

This is one of the non-Flash widgets:

<a href="http://www.wunderground.com/weatherstation/WXDailyHistory.asp?ID=KPAHAVER17">
<img src="http://banners.wunderground.com/cgi-bin/banner/ban/wxBanner?bannertype=pws250&weatherstationcount=KPAHAVER17" width="250" height="150" border="0" alt="Weather Underground PWS KPAHAVER17" />
</a>

Any help appreciated!

 [ You are not allowed to view attachments ]

Rich K.
Onset HOBO RX2102 Cellular
https://www.havtrail.com/weather/
NEWA https://newa.cornell.edu Haverford, PA

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 949
    • LexMAWeather
Re: "Weather Sticker" Widgets - Can URL link be disabled?
« Reply #1 on: August 02, 2018, 01:53:18 PM »
The link happens due the "anchor" tag (<a>) as shown in the non-flash code.  If you get rid of the <a href=.....> and the </a>, you will not have a link.

I don't see an anchor tag in the flash example, but I also avoid flash like the plague.
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline WSWeather

  • Forecaster
  • *****
  • Posts: 483
Re: "Weather Sticker" Widgets - Can URL link be disabled?
« Reply #2 on: August 06, 2018, 08:00:47 PM »
The link is baked into the Flash app and there is no way to disable it.

Offline havtrail

  • Senior Contributor
  • ****
  • Posts: 206
    • Haverford Weather Station
Re: "Weather Sticker" Widgets - Can URL link be disabled?
« Reply #3 on: August 07, 2018, 10:11:45 AM »
The link is baked into the Flash app and there is no way to disable it.

I was afraid of that. Thanks for the reply. While I don't like Adobe Flash, this first-listed WU widget that uses it conveys 7 pieces of weather info (plus the time since last update), while the others convey only 3 (temp, wind direction, wind speed) with no indication of how fresh the info is.

Rich K.
Onset HOBO RX2102 Cellular
https://www.havtrail.com/weather/
NEWA https://newa.cornell.edu Haverford, PA