How to display an image from a http link?

Hi everybody. I'm wondering if it is possible to display an image from a http url other than local file path. I tried putting the link as the 'src' attribute of an image element, but it didm't work. Could anyone help me figure it out? Thank you very much!

1 Reply
  • That should be the right way to do it:

            myImage = new KONtx.element.Image({
               src: "<http://mypage.com/path/to/image.png>",
                styles: {
                    width: Config.THUMBWIDTH,
                    vOffset: Config.THUMBHEIGHT - 7 + 10,
                    height: 5,
                    hOffset: 10,
                    src: 'Assets/960x540/Progress.png',
                    visible: false,
                    fillMode: 'tile'

    Or change it later with:

    myImage.src = "<http://mypage.com/path/to/image.png>";

    You can also use 'source', but src takes priority.


Recent Posts

in Getting Started / Beginners - Yahoo! TV Widgets