facebook

Images not appearing in mobile app simulator: CLOSED

  1. MyEclipse IDE
  2.  > 
  3. Mobile Tooling
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #339573 Reply

    RickSuds
    Member

    Hello All:

    I’m having trouble getting an image I added to a html5 mobile app page to appear in the mobile app simulator. All It will show is the empty image icon. Is there a setting that controls this I can’t find it. Any Ideas

    Thanks
    RickSuds

    UPDATE:

    I got it to work using the absolute path to the image : <img src=”C:\….myimage.png”/> the relative path “…/myapp/img/myimage.png” does not…Tried everything no go???

    #339628 Reply

    support-michael
    Keymaster

    Hi Rick,

    It’s hard to say what might be the problem without more information about where your images reside in your project and how you are settting the src of your <img>.

    Guidance:
    Place all images that your project app(s) need under the www/ folder or a subfolder (e.g., www/images) and reference them relatively. See the screenshot below where I add the image file 10.png under the www folder and reference it from the index.html file <img src=”10.png>. This works for me in the Simulator.

    Attachments:
    You must be logged in to view attached files.
    #339672 Reply

    RickSuds
    Member

    Michael,

    That did it, Thanks Much!

    RickSUds

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Images not appearing in mobile app simulator: CLOSED

You must be logged in to post in the forum log in