Results 1 to 4 of 4
  1.    #1  
    Hi guys

    This might be very obvious but I can't for the life of me figure out the app path whem I'm using the html widget in Ares. I'm trying to access a a local image with the <img> tag and i cant get it to work. Any clues?
  2.    #2  
    Nevermind. When I upload the app to my Pre, the image shows up even though it does not on the Ares html widget interface. That was an unfortunate time consuming learning lesson. That info would have been nice to know!!! What a waste of time trying to troubleshoot that.
  3. #3  
    I'll probably be running into this soon. I'm glad you posted the question and what you found. Thanks!
  4. #4  
    Alternatively you could use a div with background-image set in css.

    Or you could have an img element with source set at setup.
    For example in the view html file have:
    Code:
    <img id="myImage"/>
    Then in the javascript assistant's setup function, set the source via:
    Code:
    this.controller.get("myImage").src = Mojo.appPath + "images/imageFile.png";
    Just a few alternatives some might be interested in
    If you've liked my software, please consider to towards future development.

    Developer of many apps such as: WebOS Quick Install, WebOS Theme Builder, Ipk Packager, Unified Diff Creator, Internalz Pro, ComicShelf HD, LED Torch, over 70 patches and more.

    @JayCanuck @CanuckCoding Facebook

Posting Permissions