3 Replies Latest reply: Apr 24, 2014 1:17 PM by André Costa RSS

    Display a local image in an extension object?

      I can display a div in an extension object with a hot-linked image from the web easily enough:


      Qva.AddExtension('ShowImage', function() {

                this.Element.innerHTML = "<div style='width=200px; height:200px; background-image:url(http://www.some.image.jpg)'></div>";



      But does anybody know how to show an image held locally inside the extension folder (i.e. sitting alongside your definition.xml, script.js and Icon.png)? I've been playing around without success and can't find any documentation or examples. I was hoping CSS 'background-image:url(local-image-in-extension-folder.jpg)' would work, but diesn't seem to.