Thanks!
Sadly I can't script but I looked into your linked widget and with some trial and error I cropped the code to this:
Code:
var filename = widgetpath + "radar.gif";
var url = "http://www.meteogroup.co.uk/meteo/automatic-gif/radar.teaser/radar_de_teaser.gif";
function DownLoadInit()
{
text_update.text = "Updating...";
text_update.visible = true;
downloadFile( url,filename,"DownLoaded");
}
function DownLoaded(succeed,filename,filesize)
{
text_update.visible = !succeed;
if( succeed )
{
gif_radar.src = "";
gif_radar.src = filename;
}
else
{
text_update.Text = "Update Failed!";
settimeout( "h",3000 );
}
}
This works nice, the image gets loaded from the url and displayed in the widget.
Now I have to find out how to handle the saved gif-file (as xwidget does not overwrite it) and how to update the image every x min... ^^