
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-11-2014 09:15 PM
Can someone give me the code necessary for a custom widget that will display a graphic from a URL. Here's what I want to display:
http://weathersticker.wunderground.com/weathersticker/big2_cond/language/english/US/MI/Detroit.gif
How can I do that?
Thanks,
Jono
http://weathersticker.wunderground.com/weathersticker/big2_cond/language/english/US/MI/Detroit.gif
How can I do that?
Thanks,
Jono
Labels:
- Labels:
-
General Discussion
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-12-2014 02:15 PM
You can use the Iframe widget for this, no special code is needed

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-14-2014 04:24 PM
Lansweeper wrote:
You can use the Iframe widget for this, no special code is needed
Using the Iframe displayed the picture, but it also displayed a graphic behind the picture saying "The content cannot be displayed in a frame." Since the picture isn't big enough to cover the error graphic, using an Iframe wouldn't work.
I don't know anything about C#, but I figured out I could use this:
<%@ Page Language="C#" AutoEventWireup="true" Inherits="LS.BaseControl" %>
<%@ Import Namespace="System.Data" %>
<%@ Import Namespace="LS" %>
<% Response.CacheControl = "no-cache";%>
<% Response.AddHeader("Pragma", "no-cache"); %>
<% Response.Expires = -1; %>
<% LS.User.Current().CheckWebsiteAccess(); %>
<table align="center">
<td align="center">
<span style='display:block !important; width: 488px; text-align: center; font-family: sans-serif; font-size: 12px;'><a href='http://www.wunderground.com/cgi-bin/findweather/getForecast?query=Detroit, MI' title='Detroit, MI Weather Forecast' target="_blank"><img src='http://weathersticker.wunderground.com/weathersticker/big2_cond/language/english/US/MI/Detroit.gif' alt='Find more about Weather in Detroit, MI' /></a></span>
</td>
</table>
That works great, though C# purists may cringe at the messiness or incompleteness of the code. I really don't know what the top portion means or does, but I know HTML enough to create the bottom part. Anyway, it works.
Thanks for your help!
