Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Img Question

    I am using SmartGWT 3.1 Power Edition. I am using the Img class to display an image that is stored in my war file. I've now been asked to allow the image src be set to an arbitrary gif file that won't be stored in the war file. I've been unable to get this to work. I tried setting it to a url of the form file:// and also to a well know image file from a public web site. In both cases the image does not appear.

    Is it possible to achieve this without placing the image in the war file? If so, can you tell me what I may be doing wrong?

    #2
    A "file://" URL won't work but other URLs will work normally. Most likely, the URL is just wrong or the site is refusing to allow the image to load (for example, perhaps its protected by authentication). You can use Firebug or similar tools to see the request sent by the browser and what happened to it.

    Comment

    Working...
    X