Mac dashboard widgets not loading external images
        Posted  
        
            by andrhamm
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by andrhamm
        
        
        
        Published on 2010-05-18T20:27:32Z
        Indexed on 
            2010/05/18
            20:30 UTC
        
        
        Read the original article
        Hit count: 378
        
I set out to make a quick Mac OS X dashboard widget. I read the documentation and was pleased to find out they use simple HTML, JS, and CSS. I created my widget and it works when I open the .html file in Firefox, but it does not work when I install the widget to the dashboard.
The widget is simple: it displays the most recent image from a weather web cam stream. The image URLs look like this: http://webcam.com/stream.jpg?1274213999617. The timestamp is appended to the URL and the server automatically responds with the latest image for that time. I did not write the server script.
The widget appears to be loading correctly, but the web cam image will not load. Notice the blue question mark in the upper left. The image should appear over the square background image. Is there any special procedure for loading external images into a widget?

© Stack Overflow or respective owner