data-win-bind use image from net can't work RRS feed

  • Question

  • I'm using template to bind data.

    <div class="itemtemplate" data-win-control="WinJS.Binding.Template">
            <img class="item-image" src="#" data-win-bind="src: backgroundImage; alt: title" />
            <div class="item-overlay">
                <h4 class="item-title" data-win-bind="textContent: title"></h4>
                <h6 class="item-subtitle win-type-ellipsis" data-win-bind="textContent: subtitle"></h6>

    when I set backgroundImage as a local file, it works fine. But when I set the backgroundImage from net, such as http://www.google.com.hk/intl/zh-CN/images/logo_cn.png, it can't show.

    This seems happened only in template binding. When I set image source, it works fine.

    Is there any solution? Thanks.

    Tuesday, April 17, 2012 2:23 AM