
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-10-2014 10:01 PM
I would like to use the Accuweather widget (designed to include on a web page) as a custom widget. Is that possible? I don't know much at all about C# or how to make this work with the widget instructions on the LS site.
Here's the code from Accuweather:
Thanks,
Jono
Here's the code from Accuweather:
<a href="http://www.accuweather.com/en/us/southfield-mi/48033/current-weather/20779_pc" class="aw-widget-legal"></a>
<div id="awtd1389381943971" class="aw-widget-36hour" data-locationkey="" data-unit="f" data-language="en-us" data-useip="true" data-uid="awtd1389381943971" data-editlocation="true"></div>
<script type="text/javascript" src="http://oap.accuweather.com/launch.js"></script>
Thanks,
Jono
Labels:
- Labels:
-
General Discussion
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2014 11:42 AM
We're assuming you are using an older version of Internet Explorer.
Those always give us a headache.
Try adding an iframe widget and linking it to the widget's page:
http://[yoursitename]/WidgetsCustom/Weather2.aspx
Those always give us a headache.
Try adding an iframe widget and linking it to the widget's page:
http://[yoursitename]/WidgetsCustom/Weather2.aspx

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2014 08:54 PM
Lansweeper wrote:
We're assuming you are using an older version of Internet Explorer.
Those always give us a headache.
Try adding an iframe widget and linking it to the widget's page:
http://[yoursitename]/WidgetsCustom/Weather2.aspx
I'm using Chrome 33. But I tried it in IE9 and Firefox 26 with the same results.
Just to make sure I understood correctly, here's what the code is for this widget:
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
<% LS.User.Current().CheckWebsiteAccess(); %>
<div class="dragbox-content">
<a href="http://www.accuweather.com/en/us/southfield-mi/48033/current-weather/20779_pc" class="aw-widget-legal"></a>
<div id="awtd1389381943971" class="aw-widget-36hour" data-locationkey="" data-unit="f" data-language="en-us" data-useip="true" data-uid="awtd1389381943971" data-editlocation="true"></div>
<script type="text/javascript" src="http://oap.accuweather.com/launch.js"></script>
</div>
That's the entire code. Should there be something else in there? Any additional headers or footers needed?
I tried your suggestion and placed it in an iframe widget; that worked. This is good enough for me. My geeky side would like to figure out the original code, but it's not that important in the long run.
Thanks!

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2014 06:18 PM
The widget is coming up blank for me.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-16-2014 04:44 PM
Easiest solution:
Make a file called weather.aspx and put it in C:\Program Files (x86)\Lansweeper\Website\WidgetsCustom, with the following content:
Then go to the Configuration/Widgets/ page and add a non-editable widget with weather.aspx as the webpage. You'll have to do a page refresh (F5) to see the widget's content after dropping it on the webpage.
Make a file called weather.aspx and put it in C:\Program Files (x86)\Lansweeper\Website\WidgetsCustom, with the following content:
<%@ Page Language="C#" ContentType="text/html" ResponseEncoding="utf-8" %>
<% LS.User.Current().CheckWebsiteAccess(); %>
<div class="dragbox-content">
<a href="http://www.accuweather.com/en/us/southfield-mi/48033/current-weather/20779_pc" class="aw-widget-legal"></a>
<div id="awtd1389381943971" class="aw-widget-36hour" data-locationkey="" data-unit="f" data-language="en-us" data-useip="true" data-uid="awtd1389381943971" data-editlocation="true"></div>
<script type="text/javascript" src="http://oap.accuweather.com/launch.js"></script>
</div>
Then go to the Configuration/Widgets/ page and add a non-editable widget with weather.aspx as the webpage. You'll have to do a page refresh (F5) to see the widget's content after dropping it on the webpage.
