Titanium Community Questions & Answer Archive

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

No Images in local HTML File ???

Why cant show images in a local html code at ver.1.2.1 Has changed the way of path the image?

<img src="../img/img.png"> not work

<img src="app://com.bal.bal/img/img.png"> not work

In KitchenSink the same problem. ver. 1.2.x

Base UI > Views > Web Views > local Url <- image not show

why?

— asked May 4th 2010 by Gert Bert
  • html
  • image
  • local
0 Comments

3 Answers

  • The path needs to include the Resources directory: <img src="app://Resources/your-path-to-the-imgage/img.png" >

    Took me hours to figure out. :)

    — answered May 5th 2010 by Soeren Damrau
    permalink
    0 Comments
  • Soeren, I'm curious if you are working on Android, I can't get this method on work on this platform ;(

    Thank you.

    — answered May 12th 2010 by JS -
    permalink
    0 Comments
  • Thank u so much
    i was looking for it
    its work soooooo gooooood

    — answered May 27th 2014 by Mohammed Abunada
    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.