jpdp wrote:
Hi,
I am really new to xwidget and it looks really cool.
I can't seem to find much documentation.
I want to build a widget which opens an image from a server. That image, with the same name name will be overwritten every few minutes. Similar to an album, but with the same image.
You can do that using
HTML Panel and some of HTML and JavaScript code.
For example:
Code:
<img alt="Pic from my server" style= "border:0;position:absolute;left:0px;top:0px" src="http://myserver.net/Pic_latest.png">
<script type="text/javascript">
setInterval(function() {reload_window()}, 1000);
</script>
The second parameter of
setInterval is a wait time in milliseconds (1 sec = 1000 msec).
But unfortunately HTML panel haven't opacity property, therefore you can't set the widget opacity, even if you set image opacity using CSS and the widget haven't any background object. Very sad for me
