Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Image reference in WebView

How do I reference an image that is in my resources directory. Before when I was in the webview I could just say <img src='./images/myimage.png'> and it would appear on the page. This does not seem to work now. Thanks.

— asked April 8th 2010 by General Usage
  • image
  • mobile
  • webview
0 Comments

2 Answers

  • Accepted Answer

    For iPhone at least…

    <img src='app://images/myimage.png'>

    The folder name images can't be left out. If the png is at the root then use Resources

    — answered April 8th 2010 by Eldon Benz
    permalink
    0 Comments
  • That worked! Thank you very much Eldon.

    — answered April 8th 2010 by General Usage
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.